Record Class DSL.Instances.TaggedChoiceCacheKey<K>
java.lang.Object
java.lang.Record
com.mojang.datafixers.DSL.Instances.TaggedChoiceCacheKey<K>
- Enclosing class:
DSL.Instances
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.keyType()Returns the value of thekeyTyperecord component.name()Returns the value of thenamerecord component.final StringtoString()Returns a string representation of this record class.types()Returns the value of thetypesrecord component.
-
Field Details
-
name
The field for thenamerecord component. -
keyType
-
types
-
-
Constructor Details
-
TaggedChoiceCacheKey
Creates an instance of aTaggedChoiceCacheKeyrecord class.- Parameters:
name- the value for thenamerecord componentkeyType- the value for thekeyTyperecord componenttypes- the value for thetypesrecord component
-
-
Method Details
-
build
-
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). -
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
keyType
-
types
-