com.coyotegulch.jisp
public class StringKey extends KeyObject
StringKey defines a 16-character fixed-length text key.
See Also: KeyObject ObjectIndex
| Field Summary | |
|---|---|
| protected static int | KEY_LENGTH |
| Constructor Summary | |
|---|---|
| StringKey(String key_value)
Creates a new StringKey using key_value.
| |
| StringKey()
Creates a blank (null) StringKey. | |
| 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(ObjectInput in)StringKey implements the readExternal method to restore its contents. |
| String | toString()
Returns the String representation of a StringKey.
|
| void | writeExternal(ObjectOutput out)StringKey implements the writeExternal method to save its
contents. |
StringKey using key_value.
Parameters: key_value The text of the newly-created key.
StringKey.StringKey to key, returning one of the
KEY_* constants based on the relationship of the two keys.
Parameters: key The StringKey value to be compared against the invoking key.
Returns: one of the KEY_* constants based on the relationship of the two keys.
Returns: hash code value for this object.
See Also: java.lang.Object HashIndex
StringKey, to be used as a space-holder in certain kinds of
ObjectIndexes.
Returns: a "null" (i.e., blank) StringKey constant.
StringKey implements the readExternal method to restore its contents.String representation of a StringKey.
Returns: String representation of a StringKey.
StringKey implements the writeExternal method to save its
contents.