Record Class TypedOptic.Element<S,T,A,B>
java.lang.Object
java.lang.Record
com.mojang.datafixers.TypedOptic.Element<S,T,A,B>
- Enclosing class:
TypedOptic<S,T, A, B>
-
Field Summary
FieldsModifier and TypeFieldDescriptionThe field for theaTyperecord component.The field for thebTyperecord component.The field for theopticrecord component.The field for thesTyperecord component.The field for thetTyperecord component. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaType()Returns the value of theaTyperecord component.bType()Returns the value of thebTyperecord component.<S2,T2> TypedOptic.Element <S2, T2, A, B> castOuterUnchecked(Type<S2> sType, Type<T2> tType) final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.optic()Returns the value of theopticrecord component.sType()Returns the value of thesTyperecord component.toString()Returns a string representation of this record class.tType()Returns the value of thetTyperecord component.
-
Field Details
-
sType
-
tType
-
aType
-
bType
-
optic
-
-
Constructor Details
-
Element
Creates an instance of aElementrecord class.- Parameters:
sType- the value for thesTyperecord componenttType- the value for thetTyperecord componentaType- the value for theaTyperecord componentbType- the value for thebTyperecord componentoptic- the value for theopticrecord component
-
-
Method Details
-
castOuterUnchecked
-
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). -
sType
-
tType
-
aType
-
bType
-
optic
-