|
|||||||||
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.StringKey
StringKey
defines a 16-character fixed-length text key.
KeyObject
,
ObjectIndex
,
Serialized FormField Summary | |
protected static int |
KEY_LENGTH
|
Fields inherited from class com.coyotegulch.jisp.KeyObject |
KEY_EQUAL, KEY_ERROR, KEY_LESS, KEY_MORE |
Constructor Summary | |
StringKey()
Creates a blank (null) StringKey . |
|
StringKey(java.lang.String key_value)
Creates a new StringKey using key_value . |
Method Summary | |
int |
compareTo(KeyObject key)
Compares the invoking StringKey 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 sum of the characters in the string key value. |
KeyObject |
makeNullKey()
Returns a "null" (i.e., blank) StringKey , to be used as a space-holder in certain kinds of
ObjectIndexes . |
void |
readExternal(java.io.ObjectInput in)
StringKey implements the readExternal method to restore its contents. |
java.lang.String |
toString()
Returns the String representation of a StringKey . |
void |
writeExternal(java.io.ObjectOutput out)
StringKey implements the writeExternal method to save its
contents. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
protected static final int KEY_LENGTH
Constructor Detail |
public StringKey(java.lang.String key_value)
StringKey
using key_value
.
key_value
- The text of the newly-created key.public StringKey()
StringKey
.
Method Detail |
public int compareTo(KeyObject key)
StringKey
to key
, returning one of the
KEY_*
constants based on the relationship of the two keys.
compareTo
in class KeyObject
key
- The StringKey
value to be compared against the invoking key.
KEY_*
constants based on the relationship of the two keys.public KeyObject makeNullKey()
StringKey
, to be used as a space-holder in certain kinds of
ObjectIndexes
.
makeNullKey
in class KeyObject
StringKey
constant.BTreeIndex
public void writeExternal(java.io.ObjectOutput out) throws java.io.IOException
StringKey
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
StringKey
implements the readExternal method to restore its contents.
java.io.IOException
java.lang.ClassNotFoundException
public java.lang.String toString()
String
representation of a StringKey
.
toString
in class KeyObject
String
representation of a StringKey
.public int hashCode()
Object
,
HashIndex
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |