java.lang.Object
java.lang.Record
org.aya.tyck.pat.TypedSubst
-
Constructor Summary
ConstructorsConstructorDescriptionTypedSubst(@NotNull Subst subst, @NotNull kala.collection.mutable.MutableMap<@NotNull AnyVar, @NotNull Term> type) Creates an instance of aTypedSubstrecord class. -
Method Summary
Modifier and TypeMethodDescription@NotNull TypedSubstaddDirectly(@NotNull AnyVar var, @NotNull Term term, @NotNull Term type) @NotNull TypedSubstaddDirectly(@NotNull TypedSubst subst) voidclear()@NotNull TypedSubstderive()final booleanIndicates whether some other object is "equal to" this one.@NotNull kala.control.Option<Result>final inthashCode()Returns a hash code value for this object.@NotNull Substsubst()Returns the value of thesubstrecord component.final StringtoString()Returns a string representation of this record class.type()Returns the value of thetyperecord component.
-
Constructor Details
-
TypedSubst
public TypedSubst() -
TypedSubst
public TypedSubst(@NotNull @NotNull Subst subst, @NotNull @NotNull kala.collection.mutable.MutableMap<@NotNull AnyVar, @NotNull Term> type) Creates an instance of aTypedSubstrecord class.- Parameters:
subst- the value for thesubstrecord componenttype- the value for thetyperecord component
-
-
Method Details
-
addDirectly
@NotNull public @NotNull TypedSubst addDirectly(@NotNull @NotNull AnyVar var, @NotNull @NotNull Term term, @NotNull @NotNull Term type) -
addDirectly
-
getOption
-
derive
-
clear
public void clear() -
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). -
subst
Returns the value of thesubstrecord component.- Returns:
- the value of the
substrecord component
-
type
Returns the value of thetyperecord component.- Returns:
- the value of the
typerecord component
-