Record Class PointFreeRule.Choice2
java.lang.Object
java.lang.Record
com.mojang.datafixers.functions.PointFreeRule.Choice2
- All Implemented Interfaces:
PointFreeRule
- Enclosing interface:
PointFreeRule
public static record PointFreeRule.Choice2(PointFreeRule first, PointFreeRule second)
extends Record
implements 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 thefirstrecord component.private final PointFreeRuleThe field for thesecondrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionChoice2(PointFreeRule first, PointFreeRule second) Creates an instance of aChoice2record class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.first()Returns the value of thefirstrecord component.final inthashCode()Returns a hash code value for this object.second()Returns the value of thesecondrecord component.final StringtoString()Returns a string representation of this record class.Methods inherited from interface PointFreeRule
rewriteOrNop
-
Field Details
-
first
The field for thefirstrecord component. -
second
The field for thesecondrecord component.
-
-
Constructor Details
-
Choice2
Creates an instance of aChoice2record class.- Parameters:
first- the value for thefirstrecord componentsecond- the value for thesecondrecord 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). -
first
Returns the value of thefirstrecord component.- Returns:
- the value of the
firstrecord component
-
second
Returns the value of thesecondrecord component.- Returns:
- the value of the
secondrecord component
-