java.lang.Object
java.lang.Record
org.aya.core.serde.SerDef.SerShapeResult
- All Implemented Interfaces:
Serializable
- Enclosing interface:
SerDef
public static record SerDef.SerShapeResult(@NotNull SerDef.SerAyaShape shape, @NotNull kala.collection.immutable.ImmutableMap<CodeShape.MomentId,SerDef.QName> captures)
extends Record
implements Serializable
serialized
ShapeRecognition- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionSerShapeResult(@NotNull SerDef.SerAyaShape shape, @NotNull kala.collection.immutable.ImmutableMap<CodeShape.MomentId, SerDef.QName> captures) Creates an instance of aSerShapeResultrecord class. -
Method Summary
Modifier and TypeMethodDescription@NotNull kala.collection.immutable.ImmutableMap<CodeShape.MomentId,SerDef.QName> captures()Returns the value of thecapturesrecord component.@NotNull ShapeRecognitionde(SerTerm.DeState state) final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.static @NotNull SerDef.SerShapeResultserialize(Serializer.State state, @NotNull ShapeRecognition result) @NotNull SerDef.SerAyaShapeshape()Returns the value of theshaperecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
SerShapeResult
public SerShapeResult(@NotNull @NotNull SerDef.SerAyaShape shape, @NotNull @NotNull kala.collection.immutable.ImmutableMap<CodeShape.MomentId, SerDef.QName> captures) Creates an instance of aSerShapeResultrecord class.- Parameters:
shape- the value for theshaperecord componentcaptures- the value for thecapturesrecord component
-
-
Method Details
-
de
-
serialize
@NotNull public static @NotNull SerDef.SerShapeResult serialize(@NotNull Serializer.State state, @NotNull @NotNull ShapeRecognition result) -
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). -
shape
Returns the value of theshaperecord component.- Returns:
- the value of the
shaperecord component
-
captures
@NotNull public @NotNull kala.collection.immutable.ImmutableMap<CodeShape.MomentId,SerDef.QName> captures()Returns the value of thecapturesrecord component.- Returns:
- the value of the
capturesrecord component
-