Package com.mojang.datafixers.functions
Record Class PointFreeRule.Seq
java.lang.Object
java.lang.Record
com.mojang.datafixers.functions.PointFreeRule.Seq
- All Implemented Interfaces:
PointFreeRule
- Enclosing interface:
- PointFreeRule
public static record PointFreeRule.Seq(PointFreeRule[] rules)
extends Record
implements PointFreeRule
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.mojang.datafixers.functions.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
-
Constructor Summary
-
Method Summary
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.mojang.datafixers.functions.PointFreeRule
rewriteOrNop
-
Constructor Details
-
Seq
Creates an instance of aSeq
record class.- Parameters:
rules
- the value for therules
record component
-
-
Method Details
-
rewrite
- Specified by:
rewrite
in interfacePointFreeRule
-
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)
. -
hashCode
public int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
rules
Returns the value of therules
record component.- Returns:
- the value of the
rules
record component
-