java.lang.Object
java.lang.Record
org.aya.core.serde.SerTerm.Clazz
- All Implemented Interfaces:
Serializable,SerTerm,org.aya.guest0x0.cubical.Restr.TermLike<SerTerm>
- Enclosing interface:
SerTerm
public static record SerTerm.Clazz(SerDef.QName name, int ulift, @NotNull kala.collection.immutable.ImmutableMap<SerDef.QName,SerTerm.SerArg> members)
extends Record
implements SerTerm
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.aya.guest0x0.cubical.Restr.TermLike
org.aya.guest0x0.cubical.Restr.TermLike.Factory<T>Nested classes/interfaces inherited from interface org.aya.core.serde.SerTerm
SerTerm.Access, SerTerm.App, SerTerm.CallData, SerTerm.Clazz, SerTerm.Coe, SerTerm.Con, SerTerm.ConInfo, SerTerm.ConReduceRule, SerTerm.Data, SerTerm.DeState, SerTerm.FieldRef, SerTerm.Fn, SerTerm.FnReduceRule, SerTerm.InS, SerTerm.Interval, SerTerm.Lam, SerTerm.Match, SerTerm.Mula, SerTerm.New, SerTerm.OutS, SerTerm.PartEl, SerTerm.PartTy, SerTerm.Path, SerTerm.PathApp, SerTerm.PathLam, SerTerm.Pi, SerTerm.Prim, SerTerm.Proj, SerTerm.Ref, SerTerm.SerArg, SerTerm.SerIntegerOps, SerTerm.SerParam, SerTerm.SerShapedApplicable, SerTerm.ShapedInt, SerTerm.ShapedList, SerTerm.Sigma, SerTerm.SimpVar, SerTerm.Sort, SerTerm.Str, SerTerm.Tup -
Constructor Summary
ConstructorsConstructorDescriptionClazz(SerDef.QName name, int ulift, @NotNull kala.collection.immutable.ImmutableMap<SerDef.QName, SerTerm.SerArg> members) Creates an instance of aClazzrecord class. -
Method Summary
Modifier and TypeMethodDescription@NotNull ClassCallde(@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.@NotNull kala.collection.immutable.ImmutableMap<SerDef.QName,SerTerm.SerArg> members()Returns the value of themembersrecord component.name()Returns the value of thenamerecord component.final StringtoString()Returns a string representation of this record class.intulift()Returns the value of theuliftrecord component.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.aya.guest0x0.cubical.Restr.TermLike
asFormula
-
Constructor Details
-
Clazz
public Clazz(@NotNull SerDef.QName name, int ulift, @NotNull @NotNull kala.collection.immutable.ImmutableMap<SerDef.QName, SerTerm.SerArg> members) Creates an instance of aClazzrecord class.- Parameters:
name- the value for thenamerecord componentulift- the value for theuliftrecord componentmembers- the value for themembersrecord 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 '=='. -
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
ulift
public int ulift()Returns the value of theuliftrecord component.- Returns:
- the value of the
uliftrecord component
-
members
@NotNull public @NotNull kala.collection.immutable.ImmutableMap<SerDef.QName,SerTerm.SerArg> members()Returns the value of themembersrecord component.- Returns:
- the value of the
membersrecord component
-