java.lang.Object
de.grogra.util.StringMap
- All Implemented Interfaces:
Map,ModifiableMap,Serializable
- Direct Known Subclasses:
SOBindingImpl
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface de.grogra.util.ModifiableMap
ModifiableMap.Producer -
Field Summary
FieldsFields inherited from interface de.grogra.util.Map
DEFAULT_VALUE, EMPTY_MAP -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal voidclear()final booleancontainsKey(Object key) final booleancontainsKey(String key) final voiddup()final intfindIndex(CharSequence key, int begin, int length, int fromIndex, int toIndex) final intfinal intfinal ObjectReturns the value associated withkey.final Objectfinal Objectfinal booleangetBoolean(String key) final booleangetBoolean(String key, boolean defaultValue) final bytefinal bytefinal charfinal charfinal doublefinal doublefinal floatfinal floatfinal intfinal intfinal StringgetKeyAt(int index) final String[]getKeys()final longfinal longfinal Objectfinal Objectfinal shortfinal shortfinal Stringfinal ObjectgetValueAt(int index) final voidfinal booleanisEmpty()static voidfinal ObjectMapskeytovalue.final Objectfinal StringMapputBoolean(String key, boolean value) final StringMapfinal StringMapfinal StringMapfinal StringMapfinal StringMapfinal StringMapfinal StringMapfinal StringMapfinal Objectfinal ObjectremoveAt(int index) final ObjectsetValueAt(int index, Object value) final intsize()final ObjectsynchronizedGet(String key) final ObjectsynchronizedPut(String key, Object object) final ObjectsynchronizedRemove(String key) final MaptoMap()toString()
-
Field Details
-
TYPE
-
-
Constructor Details
-
StringMap
public StringMap(int capacity, boolean reverseSort) -
StringMap
public StringMap(int capacity) -
StringMap
public StringMap() -
StringMap
-
StringMap
-
-
Method Details
-
dup
-
getKeys
-
getValues
-
findIndex
-
findIndex
-
findIndex
-
synchronizedPut
-
put
Description copied from interface:ModifiableMapMapskeytovalue. Following invocations of theget-method withkeyas key will returnvalue.- Specified by:
putin interfaceModifiableMap- Parameters:
key- a keyobject- the value to be associated withkey- Returns:
- the previously associated value, or
null
-
put
-
synchronizedGet
-
get
-
get
-
synchronizedRemove
-
remove
-
removeAt
-
containsKey
-
containsKey
-
get
Description copied from interface:MapReturns the value associated withkey. If there is no value associated withkey,defaultValueis returned. -
size
public final int size() -
isEmpty
public final boolean isEmpty() -
getKeyAt
-
getValueAt
-
setValueAt
-
clear
public final void clear() -
disposeValuesAndClear
public final void disposeValuesAndClear() -
putBoolean
-
getBoolean
-
getBoolean
-
putByte
-
getByte
-
getByte
-
putShort
-
getShort
-
getShort
-
putChar
-
getChar
-
getChar
-
putInt
-
getInt
-
getInt
-
putLong
-
getLong
-
getLong
-
putFloat
-
getFloat
-
getFloat
-
putDouble
-
getDouble
-
getDouble
-
putObject
-
getObject
-
getObject
-
getString
-
toMap
-
toString
-
main
-