Package com.sun.xml.fastinfoset.util
Class StringIntMap
- 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 classStringIntMap.Entry
-
Field Summary
Fields Modifier and Type Field Description protected int_indexprotected StringIntMap.Entry_lastEntryprotected StringIntMap_readOnlyMapprotected StringIntMap.Entry[]_tableprotected int_totalCharacterCountprotected static StringIntMap.EntryNULL_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 voidadd(String key)voidclear()intget(String key)intgetIndex()intgetNextIndex()intgetTotalCharacterCount()intobtainIndex(String key)protected voidresize(int newCapacity)voidsetReadOnlyMap(KeyIntMap readOnlyMap, boolean clear)voidsetReadOnlyMap(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:
setReadOnlyMapin 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)
-
-