|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object bibliothek.gui.dock.station.support.PlaceholderMetaMap
public class PlaceholderMetaMap
A map for storing information that can be handled by a PlaceholderMap
. In particular
this map allows to store integers, longs, doubles, booleans and String
s only.
Constructor Summary | |
---|---|
PlaceholderMetaMap()
|
Method Summary | |
---|---|
boolean |
contains(java.lang.String key)
Tells whether some data is stored for key . |
java.lang.Object |
get(java.lang.String key)
Gets the data that is stored for key key . |
boolean |
getBoolean(java.lang.String key)
Gets the data that is stored for key key . |
double |
getDouble(java.lang.String key)
Gets the data that is stored for key key . |
int |
getInt(java.lang.String key)
Gets the data that is stored for key key . |
long |
getLong(java.lang.String key)
Gets the data that is stored for key key . |
java.lang.String |
getString(java.lang.String key)
Gets the data that is stored for key key . |
java.lang.String[] |
keys()
Gets the keys of all the data that is stored. |
void |
put(java.lang.String key,
java.lang.Object value)
Stores an additional key-value pair. |
void |
putBoolean(java.lang.String key,
boolean value)
Stores an additional key-value pair. |
void |
putInt(java.lang.String key,
int value)
Stores an additional key-value pair. |
void |
putLong(java.lang.String key,
long value)
Stores an additional key-value pair. |
void |
putString(java.lang.String key,
java.lang.String value)
Stores an additional key-value pair. |
void |
putValue(java.lang.String key,
double value)
Stores an additional key-value pair. |
java.lang.Object |
remove(java.lang.String key)
Removes key from this map. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PlaceholderMetaMap()
Method Detail |
---|
public void putInt(java.lang.String key, int value)
key
- the keyvalue
- the valuepublic void putLong(java.lang.String key, long value)
key
- the keyvalue
- the valuepublic void putValue(java.lang.String key, double value)
key
- the keyvalue
- the valuepublic void putBoolean(java.lang.String key, boolean value)
key
- the keyvalue
- the valuepublic void putString(java.lang.String key, java.lang.String value)
key
- the keyvalue
- the valuepublic void put(java.lang.String key, java.lang.Object value)
key
- the keyvalue
- the valuepublic java.lang.Object remove(java.lang.String key)
key
from this map.
key
- some key of an entry to remove
null
public java.lang.String[] keys()
null
public java.lang.String getString(java.lang.String key)
key
.
key
- the key of some entry
java.lang.IllegalArgumentException
- if there is nothing stored for key
or if the
stored object has the wrong typepublic int getInt(java.lang.String key)
key
.
key
- the key of some entry
java.lang.IllegalArgumentException
- if there is nothing stored for key
or if the
stored object has the wrong typepublic long getLong(java.lang.String key)
key
.
key
- the key of some entry
java.lang.IllegalArgumentException
- if there is nothing stored for key
or if the
stored object has the wrong typepublic double getDouble(java.lang.String key)
key
.
key
- the key of some entry
java.lang.IllegalArgumentException
- if there is nothing stored for key
or if the
stored object has the wrong typepublic boolean getBoolean(java.lang.String key)
key
.
key
- the key of some entry
java.lang.IllegalArgumentException
- if there is nothing stored for key
or if the
stored object has the wrong typepublic java.lang.Object get(java.lang.String key)
key
.
key
- the key of some entry
null
public boolean contains(java.lang.String key)
key
.
key
- the key to search
true
if data exists, false
otherwise
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |