public class StringIntMap extends KeyIntMap
Modifier and Type | Class and Description |
---|---|
protected static class |
StringIntMap.Entry |
Modifier and Type | Field and Description |
---|---|
protected int |
_index |
protected StringIntMap.Entry |
_lastEntry |
protected StringIntMap |
_readOnlyMap |
protected StringIntMap.Entry[] |
_table |
protected int |
_totalCharacterCount |
protected static StringIntMap.Entry |
NULL_ENTRY |
NOT_PRESENT
Constructor and Description |
---|
StringIntMap() |
StringIntMap(int initialCapacity) |
StringIntMap(int initialCapacity,
float loadFactor) |
Modifier and Type | Method and 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) |
protected static final StringIntMap.Entry NULL_ENTRY
protected StringIntMap _readOnlyMap
protected StringIntMap.Entry _lastEntry
protected StringIntMap.Entry[] _table
protected int _index
protected int _totalCharacterCount
public StringIntMap(int initialCapacity, float loadFactor)
public StringIntMap(int initialCapacity)
public StringIntMap()
public void setReadOnlyMap(KeyIntMap readOnlyMap, boolean clear)
setReadOnlyMap
in class KeyIntMap
public final void setReadOnlyMap(StringIntMap readOnlyMap, boolean clear)
public final int getNextIndex()
public final int getIndex()
public final int obtainIndex(String key)
public final void add(String key)
public final int get(String key)
public final int getTotalCharacterCount()
protected final void resize(int newCapacity)
Copyright © 2013 Oracle Corpration. All Rights Reserved.