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 TypeMethodDescriptionint
final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.Returns the byte buffer representation of the key.final String
toString()
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 aJObjectKeyMax
record class.
-
-
Method Details
-
compareTo
- Specified by:
compareTo
in interfaceComparable<JObjectKey>
- Specified by:
compareTo
in interfaceJObjectKey
-
toByteBuffer
Description copied from interface:JObjectKey
Returns the byte buffer representation of the key.- Specified by:
toByteBuffer
in interfaceJObjectKey
- Returns:
- the byte buffer representation of the key
-
value
Description copied from interface:JObjectKey
Returns the string value of the key.- Specified by:
value
in 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:
toString
in interfaceJObjectKey
- Specified by:
toString
in 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.
-