|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectcom.coyotegulch.jisp.KeyObject
com.coyotegulch.jisp.LongKey
public class LongKey
LongKey defines a key based on the long type.
KeyObject,
ObjectIndex,
Serialized Form| Field Summary |
|---|
| Fields inherited from class com.coyotegulch.jisp.KeyObject |
|---|
KEY_EQUAL, KEY_ERROR, KEY_LESS, KEY_MORE |
| Constructor Summary | |
|---|---|
LongKey()
Creates a blank LongKey (value = 0). |
|
LongKey(long key_value)
Creates a new LongKey with a specific value. |
|
| Method Summary | |
|---|---|
int |
compareTo(KeyObject key)
Compares the invoking LongKey to key, returning one of the
KEY_* constants based on the relationship of the two keys. |
int |
hashCode()
Returns a hash code value for the object, which is, in effect, the the value of the key. |
long |
longValue()
Returns the long value of a LongKey. |
KeyObject |
makeNullKey()
Returns a "null" (i.e., blank) LongKey, to be used as a space-holder in certain kinds of
ObjectIndexes. |
void |
readExternal(java.io.ObjectInput in)
LongKey implements the readExternal method to restore its contents. |
java.lang.String |
toString()
Returns the String representation of a LongKey. |
void |
writeExternal(java.io.ObjectOutput out)
LongKey implements the writeExternal method to save its
contents. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public LongKey(long key_value)
LongKey with a specific value.
keyValue - value of the newly-created key.public LongKey()
LongKey (value = 0).
| Method Detail |
|---|
public int compareTo(KeyObject key)
LongKey to key, returning one of the
KEY_* constants based on the relationship of the two keys.
compareTo in class KeyObjectkey - The LongKey value to be compared against the invoking key.
KEY_* constants based on the relationship of the two keys.public KeyObject makeNullKey()
LongKey, to be used as a space-holder in certain kinds of
ObjectIndexes. The "null" value is 0xFFFFFFFFFFFFFFFF (all ones).
makeNullKey in class KeyObjectLongKey constant.BTreeIndex
public void writeExternal(java.io.ObjectOutput out)
throws java.io.IOException
LongKey implements the writeExternal method to save its
contents.
java.io.IOException
public void readExternal(java.io.ObjectInput in)
throws java.io.IOException,
java.lang.ClassNotFoundException
LongKey implements the readExternal method to restore its contents.
java.io.IOException
java.lang.ClassNotFoundExceptionpublic long longValue()
long value of a LongKey.
long value of a LongKey.public java.lang.String toString()
String representation of a LongKey.
toString in class KeyObjectString representation of a LongKey.public int hashCode()
hashCode in class java.lang.ObjectObject,
HashIndex
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||