java.lang.Object
java.lang.Record
org.aya.tyck.Jdg.Default
- All Implemented Interfaces:
Jdg
- Enclosing interface:
Jdg
public static record Jdg.Default(@NotNull org.aya.syntax.core.term.Term wellTyped, @NotNull org.aya.syntax.core.term.Term type)
extends Record
implements Jdg
type is the type of wellTyped.-
Nested Class Summary
Nested classes/interfaces inherited from interface org.aya.tyck.Jdg
Jdg.Default, Jdg.Lazy, Jdg.Sort -
Constructor Summary
ConstructorsConstructorDescriptionDefault(@NotNull org.aya.syntax.core.term.Term wellTyped, @NotNull org.aya.syntax.core.term.Term type) Creates an instance of aDefaultrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.@NotNull Jdg.Defaultmap(@NotNull UnaryOperator<org.aya.syntax.core.term.Term> f) final StringtoString()Returns a string representation of this record class.@NotNull org.aya.syntax.core.term.Termtype()Returns the value of thetyperecord component.@NotNull org.aya.syntax.core.term.TermReturns the value of thewellTypedrecord component.
-
Constructor Details
-
Default
public Default(@NotNull @NotNull org.aya.syntax.core.term.Term wellTyped, @NotNull @NotNull org.aya.syntax.core.term.Term type) Creates an instance of aDefaultrecord class.- Parameters:
wellTyped- the value for thewellTypedrecord componenttype- the value for thetyperecord component
-
-
Method Details
-
map
@NotNull public @NotNull Jdg.Default map(@NotNull @NotNull UnaryOperator<org.aya.syntax.core.term.Term> f) -
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). -
wellTyped
@NotNull public @NotNull org.aya.syntax.core.term.Term wellTyped()Returns the value of thewellTypedrecord component. -
type
@NotNull public @NotNull org.aya.syntax.core.term.Term type()Returns the value of thetyperecord component.
-