Record Class TlsfAllocator.IndexPair
java.lang.Object
java.lang.Record
com.mojang.blaze3d.vertex.TlsfAllocator.IndexPair
- Enclosing class:
TlsfAllocator
private static record TlsfAllocator.IndexPair(int firstLevelIndex, int secondLevelIndex)
extends Record
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final intThe field for thefirstLevelIndexrecord component.private final intThe field for thesecondLevelIndexrecord component. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateIndexPair(int firstLevelIndex, int secondLevelIndex) Creates an instance of aIndexPairrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.intReturns the value of thefirstLevelIndexrecord component.final inthashCode()Returns a hash code value for this object.intReturns the value of thesecondLevelIndexrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
firstLevelIndex
private final int firstLevelIndexThe field for thefirstLevelIndexrecord component. -
secondLevelIndex
private final int secondLevelIndexThe field for thesecondLevelIndexrecord component.
-
-
Constructor Details
-
IndexPair
private IndexPair(int firstLevelIndex, int secondLevelIndex) Creates an instance of aIndexPairrecord class.- Parameters:
firstLevelIndex- the value for thefirstLevelIndexrecord componentsecondLevelIndex- the value for thesecondLevelIndexrecord 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. All components in this record class are compared with thecomparemethod from their corresponding wrapper classes. -
firstLevelIndex
public int firstLevelIndex()Returns the value of thefirstLevelIndexrecord component.- Returns:
- the value of the
firstLevelIndexrecord component
-
secondLevelIndex
public int secondLevelIndex()Returns the value of thesecondLevelIndexrecord component.- Returns:
- the value of the
secondLevelIndexrecord component
-