java.lang.Object
java.lang.Record
org.aya.core.serde.SerTerm.SerArg
- All Implemented Interfaces:
Serializable
- Enclosing interface:
SerTerm
public static record SerTerm.SerArg(@NotNull SerTerm arg, boolean explicit)
extends Record
implements Serializable
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription@NotNull SerTermarg()Returns the value of theargrecord component.@NotNull org.aya.util.Arg<Term>de(@NotNull SerTerm.DeState state) final booleanIndicates whether some other object is "equal to" this one.booleanexplicit()Returns the value of theexplicitrecord component.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
SerArg
Creates an instance of aSerArgrecord class.- Parameters:
arg- the value for theargrecord componentexplicit- the value for theexplicitrecord component
-
-
Method Details
-
de
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
arg
Returns the value of theargrecord component.- Returns:
- the value of the
argrecord component
-
explicit
public boolean explicit()Returns the value of theexplicitrecord component.- Returns:
- the value of the
explicitrecord component
-