java.lang.Object
java.lang.Record
org.aya.core.serde.SerTerm.SerIntegerOps
- All Implemented Interfaces:
Serializable,SerTerm.SerShapedApplicable
- Enclosing interface:
SerTerm
public static record SerTerm.SerIntegerOps(SerDef.QName ref, @NotNull kala.control.Either<SerTerm.ConInfo,IntegerOps.FnRule.Kind> data)
extends Record
implements SerTerm.SerShapedApplicable
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionSerIntegerOps(SerDef.QName ref, @NotNull kala.control.Either<SerTerm.ConInfo, IntegerOps.FnRule.Kind> data) Creates an instance of aSerIntegerOpsrecord class. -
Method Summary
Modifier and TypeMethodDescription@NotNull kala.control.Either<SerTerm.ConInfo,IntegerOps.FnRule.Kind> data()Returns the value of thedatarecord component.Shaped.Applicable<Term,?, ?> deShape(@NotNull SerTerm.DeState state) final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.ref()Returns the value of therefrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
SerIntegerOps
public SerIntegerOps(@NotNull SerDef.QName ref, @NotNull @NotNull kala.control.Either<SerTerm.ConInfo, IntegerOps.FnRule.Kind> data) Creates an instance of aSerIntegerOpsrecord class.- Parameters:
ref- the value for therefrecord componentdata- the value for thedatarecord component
-
-
Method Details
-
deShape
- Specified by:
deShapein interfaceSerTerm.SerShapedApplicable
-
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). -
ref
Returns the value of therefrecord component.- Returns:
- the value of the
refrecord component
-
data
Returns the value of thedatarecord component.- Returns:
- the value of the
datarecord component
-