Package com.usatiuk.objects
Class JObjectKeyImpl
java.lang.Object
com.usatiuk.objects.JObjectKeyImpl
- All Implemented Interfaces:
JObjectKey
,Serializable
,Comparable<JObjectKey>
A "real" implementation of JObjectKey, containing an underlying string, and a cached lazily created byte buffer.
- See Also:
-
Field Summary
Fields inherited from interface com.usatiuk.objects.JObjectKey
MAX, MIN
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
JObjectKeyImpl
-
JObjectKeyImpl
public JObjectKeyImpl(byte[] bytes)
-
-
Method Details
-
compareTo
- Specified by:
compareTo
in interfaceComparable<JObjectKey>
- Specified by:
compareTo
in interfaceJObjectKey
-
toString
- Specified by:
toString
in interfaceJObjectKey
- Overrides:
toString
in classObject
-
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
-
equals
-
hashCode
public int hashCode()
-