Record Class Type.RewriteCacheKey
java.lang.Object
java.lang.Record
com.mojang.datafixers.types.Type.RewriteCacheKey
private static record Type.RewriteCacheKey(Type<?> type, TypeRewriteRule rule, PointFreeRule optimizationRule)
extends Record
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final PointFreeRuleThe field for theoptimizationRulerecord component.private final TypeRewriteRuleThe field for therulerecord component.private final Type<?> The field for thetyperecord component. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateRewriteCacheKey(Type<?> type, TypeRewriteRule rule, PointFreeRule optimizationRule) Creates an instance of aRewriteCacheKeyrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of theoptimizationRulerecord component.rule()Returns the value of therulerecord component.final StringtoString()Returns a string representation of this record class.Type<?> type()Returns the value of thetyperecord component.
-
Field Details
-
type
The field for thetyperecord component. -
rule
The field for therulerecord component. -
optimizationRule
The field for theoptimizationRulerecord component.
-
-
Constructor Details
-
RewriteCacheKey
Creates an instance of aRewriteCacheKeyrecord class.- Parameters:
type- the value for thetyperecord componentrule- the value for therulerecord componentoptimizationRule- the value for theoptimizationRulerecord 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). -
type
Returns the value of thetyperecord component.- Returns:
- the value of the
typerecord component
-
rule
Returns the value of therulerecord component.- Returns:
- the value of the
rulerecord component
-
optimizationRule
Returns the value of theoptimizationRulerecord component.- Returns:
- the value of the
optimizationRulerecord component
-