Package com.mojang.datafixers.optics
Record Class Optic.CompositionOptic<Proof extends K1,S,T,A,B>
java.lang.Object
java.lang.Record
com.mojang.datafixers.optics.Optic.CompositionOptic<Proof,S,T,A,B>
- All Implemented Interfaces:
Optic<Proof,
S, T, A, B>
-
Nested Class Summary
-
Constructor Summary
ConstructorDescriptionCompositionOptic
(List<? extends Optic<? super Proof, ?, ?, ?, ?>> optics) Creates an instance of aCompositionOptic
record class. -
Method Summary
-
Constructor Details
-
CompositionOptic
Creates an instance of aCompositionOptic
record class.- Parameters:
optics
- the value for theoptics
record component
-
-
Method Details
-
eval
-
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. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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)
. -
optics
Returns the value of theoptics
record component.- Returns:
- the value of the
optics
record component
-