java.lang.Object
java.lang.Record
org.aya.core.serde.SerPat.ShapedInt
- All Implemented Interfaces:
Serializable,SerPat
- Enclosing interface:
SerPat
public static record SerPat.ShapedInt(int integer, boolean explicit, SerDef.SerShapeResult shape, SerTerm.Data type)
extends Record
implements SerPat
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.aya.core.serde.SerPat
SerPat.Absurd, SerPat.Bind, SerPat.Clause, SerPat.Ctor, SerPat.ShapedInt, SerPat.Tuple -
Constructor Summary
ConstructorsConstructorDescriptionShapedInt(int integer, boolean explicit, SerDef.SerShapeResult shape, SerTerm.Data type) Creates an instance of aShapedIntrecord class. -
Method Summary
Modifier and TypeMethodDescription@NotNull Patde(@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.intinteger()Returns the value of theintegerrecord component.shape()Returns the value of theshaperecord component.final StringtoString()Returns a string representation of this record class.type()Returns the value of thetyperecord component.
-
Constructor Details
-
ShapedInt
public ShapedInt(int integer, boolean explicit, @NotNull SerDef.SerShapeResult shape, @NotNull SerTerm.Data type) Creates an instance of aShapedIntrecord class.- Parameters:
integer- the value for theintegerrecord componentexplicit- the value for theexplicitrecord componentshape- the value for theshaperecord componenttype- the value for thetyperecord 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 '=='. -
integer
public int integer()Returns the value of theintegerrecord component.- Returns:
- the value of the
integerrecord component
-
explicit
public boolean explicit()Returns the value of theexplicitrecord component.- Returns:
- the value of the
explicitrecord component
-
shape
Returns the value of theshaperecord component.- Returns:
- the value of the
shaperecord component
-
type
Returns the value of thetyperecord component.- Returns:
- the value of the
typerecord component
-