Module aya.base

Record Class SortTerm

java.lang.Object
java.lang.Record
org.aya.core.term.SortTerm
All Implemented Interfaces:
StableWHNF, Term, AyaDocile, org.aya.guest0x0.cubical.Restr.TermLike<Term>

public record SortTerm(@NotNull SortKind kind, int lift) extends Record implements StableWHNF
  • Field Details

    • Type0

      @NotNull public static final @NotNull SortTerm Type0
    • Set0

      @NotNull public static final @NotNull SortTerm Set0
    • Set1

      @NotNull public static final @NotNull SortTerm Set1
    • ISet

      @NotNull public static final @NotNull SortTerm ISet
    • Prop

      @NotNull public static final @NotNull SortTerm Prop
  • Constructor Details

    • SortTerm

      public SortTerm(@NotNull @NotNull SortKind kind, int lift)
      Creates an instance of a SortTerm record class.
      Parameters:
      kind - the value for the kind record component
      lift - the value for the lift record component
  • Method Details

    • succ

      @NotNull public @NotNull SortTerm succ()
    • elevate

      @NotNull public @NotNull SortTerm elevate(int lift)
    • isProp

      public boolean isProp()
    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object); primitive components are compared with '=='.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • kind

      @NotNull public @NotNull SortKind kind()
      Returns the value of the kind record component.
      Returns:
      the value of the kind record component
    • lift

      public int lift()
      Returns the value of the lift record component.
      Returns:
      the value of the lift record component