java.lang.Object
java.lang.Record
org.aya.core.visitor.Subst
- All Implemented Interfaces:
AyaDocile,org.aya.guest0x0.cubical.CofThy.SubstObj<Term,LocalVar, Subst>
public record Subst(@NotNull kala.collection.mutable.MutableMap<@NotNull AnyVar,@NotNull Term> map)
extends Record
implements AyaDocile, org.aya.guest0x0.cubical.CofThy.SubstObj<Term,LocalVar,Subst>
"Substitution object"
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription@NotNull Subst@NotNull Subst@NotNull SubstaddAllDirectly(@NotNull Subst subst) @NotNull SubstaddDirectly(@NotNull AnyVar var, @NotNull Term term) @Nullable LocalVarvoidclear()booleancontradicts(LocalVar i, boolean newIsOne) @NotNull Substderive()final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanisEmpty()map()Returns the value of themaprecord component.kala.collection.immutable.ImmutableSeq<AnyVar>void@NotNull org.aya.guest0x0.cubical.Restr<Term>void@NotNull org.aya.pretty.doc.DoctoDoc(@NotNull org.aya.util.distill.DistillerOptions options) final StringtoString()Returns a string representation of this record class.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.aya.generic.AyaDocile
debuggerOnlyToDoc
-
Field Details
-
EMPTY
-
-
Constructor Details
-
Method Details
-
subst
-
overlap
-
addDirectly
-
addAllDirectly
-
add
-
add
-
clear
public void clear() -
isEmpty
public boolean isEmpty() -
put
-
contradicts
-
asRef
-
derive
-
restr
-
toDoc
@NotNull public @NotNull org.aya.pretty.doc.Doc toDoc(@NotNull @NotNull org.aya.util.distill.DistillerOptions options) -
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). -
map
Returns the value of themaprecord component.- Returns:
- the value of the
maprecord component
-