|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.redhat.rhn.common.util.CharacterMap
public class CharacterMap
An wrapper around HashMap that ONLY acccepts java.lang.Characters and java.lang.Integers. 5.0: This class should be removed once we switch to Java 5.0 and we get Generics.
| Constructor Summary | |
|---|---|
CharacterMap()
public constructor |
|
| Method Summary | |
|---|---|
boolean |
containsKey(char charTest)
Check to see if the map contains this character |
boolean |
containsKey(java.lang.Character charTest)
Check to see if the map contains this character |
boolean |
equals(java.lang.Object o)
|
java.lang.Integer |
get(char key)
Retrieve value |
java.lang.Integer |
get(java.lang.Character key)
Retrieve value |
int |
hashCode()
Implement hashCode for CharacterMap |
void |
put(java.lang.Character charIn,
java.lang.Integer intIn)
Add charIn and intIn to the map. |
void |
put(char charIn,
int intIn)
Add charIn and intIn to the map. |
int |
size()
Implement size function for CharacterMap |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public CharacterMap()
| Method Detail |
|---|
public void put(java.lang.Character charIn,
java.lang.Integer intIn)
charIn - Character to addintIn - Integer to add
public void put(char charIn,
int intIn)
charIn - Character to addintIn - Integer to addpublic java.lang.Integer get(java.lang.Character key)
key - Character you want the starting position of
public java.lang.Integer get(char key)
key - Character you want the starting position of
public boolean containsKey(java.lang.Character charTest)
charTest - The character to test
public boolean containsKey(char charTest)
charTest - The character to test
public int size()
public boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||