Class LongKey
java.lang.Object
com.coyotegulch.jisp.KeyObject
com.coyotegulch.jisp.LongKey
- All Implemented Interfaces:
Externalizable, Serializable
-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintCompares the invokingLongKeytokey, returning one of theKEY_*constants based on the relationship of the two keys.inthashCode()Returns a hash code value for the object, which is, in effect, the the value of the key.longReturns thelongvalue of aLongKey.Returns a "null" (i.e., blank)LongKey, to be used as a space-holder in certain kinds ofObjectIndexes.voidLongKeyimplements the readExternal method to restore its contents.toString()Returns theStringrepresentation of aLongKey.voidLongKeyimplements thewriteExternalmethod to save its contents.
-
Constructor Details
-
LongKey
public LongKey(long key_value) Creates a newLongKeywith a specific value.- Parameters:
keyValue- value of the newly-created key.
-
LongKey
public LongKey()Creates a blankLongKey(value = 0).
-
-
Method Details
-
compareTo
Compares the invokingLongKeytokey, returning one of theKEY_*constants based on the relationship of the two keys. -
makeNullKey
Returns a "null" (i.e., blank)LongKey, to be used as a space-holder in certain kinds ofObjectIndexes. The "null" value is 0xFFFFFFFFFFFFFFFF (all ones).- Specified by:
makeNullKeyin classKeyObject- Returns:
- A "null" (i.e., blank)
LongKeyconstant. - See Also:
-
writeExternal
LongKeyimplements thewriteExternalmethod to save its contents.- Throws:
IOException
-
readExternal
LongKeyimplements the readExternal method to restore its contents.- Throws:
IOExceptionClassNotFoundException
-
longValue
public long longValue()Returns thelongvalue of aLongKey.- Returns:
- The
longvalue of aLongKey.
-
toString
-
hashCode
-