- java.lang.Object
-
- com.sun.xml.fastinfoset.util.KeyIntMap
-
- com.sun.xml.fastinfoset.util.StringIntMap
-
- Direct Known Subclasses:
FixedEntryStringIntMap
public class StringIntMap extends KeyIntMap
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static class
StringIntMap.Entry
-
Field Summary
Fields Modifier and Type Field Description protected int
_index
protected StringIntMap.Entry
_lastEntry
protected StringIntMap
_readOnlyMap
protected StringIntMap.Entry[]
_table
protected int
_totalCharacterCount
protected static StringIntMap.Entry
NULL_ENTRY
-
Fields inherited from class com.sun.xml.fastinfoset.util.KeyIntMap
NOT_PRESENT
-
-
Constructor Summary
Constructors Constructor Description StringIntMap()
StringIntMap(int initialCapacity)
StringIntMap(int initialCapacity, float loadFactor)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
add(String key)
void
clear()
int
get(String key)
int
getIndex()
int
getNextIndex()
int
getTotalCharacterCount()
int
obtainIndex(String key)
protected void
resize(int newCapacity)
void
setReadOnlyMap(KeyIntMap readOnlyMap, boolean clear)
void
setReadOnlyMap(StringIntMap readOnlyMap, boolean clear)
-
-
-
Field Detail
-
NULL_ENTRY
protected static final StringIntMap.Entry NULL_ENTRY
-
_readOnlyMap
protected StringIntMap _readOnlyMap
-
_lastEntry
protected StringIntMap.Entry _lastEntry
-
_table
protected StringIntMap.Entry[] _table
-
_index
protected int _index
-
_totalCharacterCount
protected int _totalCharacterCount
-
-
Method Detail
-
setReadOnlyMap
public void setReadOnlyMap(KeyIntMap readOnlyMap, boolean clear)
- Specified by:
setReadOnlyMap
in classKeyIntMap
-
setReadOnlyMap
public final void setReadOnlyMap(StringIntMap readOnlyMap, boolean clear)
-
getNextIndex
public final int getNextIndex()
-
getIndex
public final int getIndex()
-
obtainIndex
public final int obtainIndex(String key)
-
add
public final void add(String key)
-
get
public final int get(String key)
-
getTotalCharacterCount
public final int getTotalCharacterCount()
-
resize
protected final void resize(int newCapacity)
-
-