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
Fields inherited from interface de.grogra.util.Map
DEFAULT_VALUE, EMPTY_MAP
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfinal void
clear()
final boolean
containsKey
(Object key) final boolean
containsKey
(String key) final void
dup()
final int
findIndex
(CharSequence key, int begin, int length, int fromIndex, int toIndex) final int
final int
final Object
Returns the value associated withkey
.final Object
final Object
final boolean
getBoolean
(String key) final boolean
getBoolean
(String key, boolean defaultValue) final byte
final byte
final char
final char
final double
final double
final float
final float
final int
final int
final String
getKeyAt
(int index) final String[]
getKeys()
final long
final long
final Object
final Object
final short
final short
final String
final Object
getValueAt
(int index) final void
final boolean
isEmpty()
static void
final Object
Mapskey
tovalue
.final Object
final StringMap
putBoolean
(String key, boolean value) final StringMap
final StringMap
final StringMap
final StringMap
final StringMap
final StringMap
final StringMap
final StringMap
final Object
final Object
removeAt
(int index) final Object
setValueAt
(int index, Object value) final int
size()
final Object
synchronizedGet
(String key) final Object
synchronizedPut
(String key, Object object) final Object
synchronizedRemove
(String key) final Map
toMap()
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:ModifiableMap
Mapskey
tovalue
. Following invocations of theget
-method withkey
as key will returnvalue
.- Specified by:
put
in 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:Map
Returns the value associated withkey
. If there is no value associated withkey
,defaultValue
is 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
-