java.lang.Object
java.lang.Record
org.aya.terck.Relation.Decrease
- Record Components:
usable- Currently unused, for coinductive. Are we going to have it?size- The larger the size, the smaller the callee argument.
- All Implemented Interfaces:
org.aya.pretty.doc.Docile,Relation,Selector.Candidate<Relation>
- Enclosing interface:
Relation
decrease of callee argument wrt. caller parameter
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.aya.terck.Relation
Relation.Decrease, Relation.Unknown -
Constructor Summary
ConstructorsConstructorDescriptionDecrease(boolean usable, int size) Creates an instance of aDecreaserecord 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.intsize()Returns the value of thesizerecord component.final StringtoString()Returns a string representation of this record class.booleanusable()Returns the value of theusablerecord component.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.aya.terck.Relation
add, compare, isDecreasing, isUnknown, mul, toDocMethods inherited from interface org.aya.terck.Selector.Candidate
notWorseThan
-
Constructor Details
-
Method Details
-
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 with '=='. -
usable
public boolean usable()Returns the value of theusablerecord component.- Returns:
- the value of the
usablerecord component
-
size
public int size()Returns the value of thesizerecord component.- Returns:
- the value of the
sizerecord component
-