Record Class Fold.HmapCacheKey
java.lang.Object
java.lang.Record
com.mojang.datafixers.functions.Fold.HmapCacheKey
private static record Fold.HmapCacheKey(RecursiveTypeFamily family, RecursiveTypeFamily newFamily, Algebra algebra)
extends Record
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final AlgebraThe field for thealgebrarecord component.private final RecursiveTypeFamilyThe field for thefamilyrecord component.private final RecursiveTypeFamilyThe field for thenewFamilyrecord component. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateHmapCacheKey(RecursiveTypeFamily family, RecursiveTypeFamily newFamily, Algebra algebra) Creates an instance of aHmapCacheKeyrecord class. -
Method Summary
Modifier and TypeMethodDescriptionalgebra()Returns the value of thealgebrarecord component.final booleanIndicates whether some other object is "equal to" this one.family()Returns the value of thefamilyrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of thenewFamilyrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
family
The field for thefamilyrecord component. -
newFamily
The field for thenewFamilyrecord component. -
algebra
The field for thealgebrarecord component.
-
-
Constructor Details
-
HmapCacheKey
Creates an instance of aHmapCacheKeyrecord class.- Parameters:
family- the value for thefamilyrecord componentnewFamily- the value for thenewFamilyrecord componentalgebra- the value for thealgebrarecord 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 withObjects::equals(Object,Object). -
family
Returns the value of thefamilyrecord component.- Returns:
- the value of the
familyrecord component
-
newFamily
Returns the value of thenewFamilyrecord component.- Returns:
- the value of the
newFamilyrecord component
-
algebra
Returns the value of thealgebrarecord component.- Returns:
- the value of the
algebrarecord component
-