CharKeypublic class CharKey extends Object Simple class for fast lookup of char values, when used with
hashtables. You can set the char, then use it as a key. |
Fields Summary |
---|
private char | m_charString value |
Constructors Summary |
---|
public CharKey(char key)Constructor CharKey
m_char = key;
| public CharKey()Default constructor for a CharKey.
|
Methods Summary |
---|
public final boolean | equals(java.lang.Object obj)Override of equals() for this object
return ((CharKey)obj).m_char == m_char;
| public final int | hashCode()Get the hash value of the character.
return (int)m_char;
| public final void | setChar(char c)Get the hash value of the character.
m_char = c;
|
|