Package com.usatiuk.objects
Record Class JObjectKeyMax
java.lang.Object
java.lang.Record
com.usatiuk.objects.JObjectKeyMax
- All Implemented Interfaces:
JObjectKey,Serializable,Comparable<JObjectKey>
JObjectKey implementation that compares greater than all other keys.
- See Also:
-
Field Summary
Fields inherited from interface com.usatiuk.objects.JObjectKey
MAX, MIN -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the byte buffer representation of the key.final StringtoString()Returns a string representation of this record class.value()Returns the string value of the key.
-
Constructor Details
-
JObjectKeyMax
public JObjectKeyMax()Creates an instance of aJObjectKeyMaxrecord class.
-
-
Method Details
-
compareTo
- Specified by:
compareToin interfaceComparable<JObjectKey>- Specified by:
compareToin interfaceJObjectKey
-
toByteBuffer
Description copied from interface:JObjectKeyReturns the byte buffer representation of the key.- Specified by:
toByteBufferin interfaceJObjectKey- Returns:
- the byte buffer representation of the key
-
value
Description copied from interface:JObjectKeyReturns the string value of the key.- Specified by:
valuein interfaceJObjectKey- Returns:
- the string value of the key
-
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:
toStringin interfaceJObjectKey- Specified by:
toStringin classRecord- 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. -
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.
-