Record Class PointFreeRule.One
java.lang.Object
java.lang.Record
com.mojang.datafixers.functions.PointFreeRule.One
- All Implemented Interfaces:
PointFreeRule
- Enclosing interface:
PointFreeRule
-
Nested Class Summary
Nested classes/interfaces inherited from interface PointFreeRule
PointFreeRule.All, PointFreeRule.AppNest, PointFreeRule.BangEta, PointFreeRule.CataFuseDifferent, PointFreeRule.CataFuseSame, PointFreeRule.Choice, PointFreeRule.Choice2, PointFreeRule.CompRewrite, PointFreeRule.Everywhere, PointFreeRule.LensAppId, PointFreeRule.LensComp, PointFreeRule.Many, PointFreeRule.Nop, PointFreeRule.Once, PointFreeRule.One, PointFreeRule.Seq, PointFreeRule.SortInj, PointFreeRule.SortProj -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final PointFreeRuleThe field for therulerecord component. -
Constructor Summary
Constructors -
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.rule()Returns the value of therulerecord component.final StringtoString()Returns a string representation of this record class.Methods inherited from interface PointFreeRule
rewriteOrNop
-
Field Details
-
rule
The field for therulerecord component.
-
-
Constructor Details
-
One
Creates an instance of aOnerecord class.- Parameters:
rule- the value for therulerecord component
-
-
Method Details
-
rewrite
- Specified by:
rewritein interfacePointFreeRule
-
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). -
rule
Returns the value of therulerecord component.- Returns:
- the value of the
rulerecord component
-