Record Class OrderingTotality.ComparatorUse
java.lang.Object
java.lang.Record
org.ek9lang.compiler.phase5.OrderingTotality.ComparatorUse
- Record Components:
token- where it is useduser- what orders by it ('sort',a 'Comparator of Money')function- the function
- Enclosing class:
OrderingTotality
static record OrderingTotality.ComparatorUse(IToken token, String user, FunctionSymbol function)
extends Record
A function used as an ordering where it is not declared one.
-
Constructor Summary
ConstructorsConstructorDescriptionComparatorUse(IToken token, String user, FunctionSymbol function) Creates an instance of aComparatorUserecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.function()Returns the value of thefunctionrecord component.final inthashCode()Returns a hash code value for this object.token()Returns the value of thetokenrecord component.final StringtoString()Returns a string representation of this record class.user()Returns the value of theuserrecord component.
-
Constructor Details
-
ComparatorUse
-
-
Method Details
-
toString
-
hashCode
-
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). -
token
-
user
-
function
-