Record Class EntityRange
java.lang.Object
java.lang.Record
io.github.elebras1.flecs.util.EntityRange
-
Constructor Summary
ConstructorsConstructorDescriptionEntityRange(int min, int max, int current, long[] recycled) Creates an instance of aEntityRangerecord class. -
Method Summary
Modifier and TypeMethodDescriptionintcurrent()Returns the value of thecurrentrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intmax()Returns the value of themaxrecord component.intmin()Returns the value of theminrecord component.long[]recycled()Returns the value of therecycledrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
EntityRange
public EntityRange(int min, int max, int current, long[] recycled) Creates an instance of aEntityRangerecord class.- Parameters:
min- the value for theminrecord componentmax- the value for themaxrecord componentcurrent- the value for thecurrentrecord componentrecycled- the value for therecycledrecord component
-
-
Method Details
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
min
public int min()Returns the value of theminrecord component.- Returns:
- the value of the
minrecord component
-
max
public int max()Returns the value of themaxrecord component.- Returns:
- the value of the
maxrecord component
-
current
public int current()Returns the value of thecurrentrecord component.- Returns:
- the value of the
currentrecord component
-
recycled
public long[] recycled()Returns the value of therecycledrecord component.- Returns:
- the value of the
recycledrecord component
-