|
ePOST API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object rice.p2p.util.StringCache
public class StringCache
Implementation of a cache of strings
Constructor Summary | |
---|---|
StringCache()
Constructs an empty IntHashMap with the default initial capacity (16) and the default load factor (0.75). |
Method Summary | |
---|---|
void |
clear()
Removes all mappings from this map. |
java.lang.String |
get(char[] chars)
Returns the value to which the specified key is mapped in this identity hash map, or null if the map contains no mapping for this key. |
java.lang.String |
get(char[] chars,
int offset,
int length)
Returns the value to which the specified key is mapped in this identity hash map, or null if the map contains no mapping for this key. |
boolean |
isEmpty()
Returns true if this map contains no key-value mappings. |
int |
size()
Returns the number of key-value mappings in this map. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public StringCache()
Method Detail |
---|
public int size()
public boolean isEmpty()
public java.lang.String get(char[] chars)
key
- the key whose associated value is to be returned.
#put(Object, Object)
public java.lang.String get(char[] chars, int offset, int length)
key
- the key whose associated value is to be returned.
#put(Object, Object)
public void clear()
|
ePOST API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |