public class PlaceholderMetaMap extends Object
PlaceholderMap. In particular
this map allows to store integers, longs, doubles, booleans and Strings only.| Constructor and Description |
|---|
PlaceholderMetaMap() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
contains(String... keys)
Tells whether some data is stored for
key. |
boolean |
contains(String key)
Tells whether some data is stored for
key. |
Object |
get(String key)
Gets the data that is stored for key
key. |
boolean |
getBoolean(String key)
Gets the data that is stored for key
key. |
double |
getDouble(String key)
Gets the data that is stored for key
key. |
int |
getInt(String key)
Gets the data that is stored for key
key. |
long |
getLong(String key)
Gets the data that is stored for key
key. |
String |
getString(String key)
Gets the data that is stored for key
key. |
String[] |
keys()
Gets the keys of all the data that is stored.
|
void |
put(String key,
Object value)
Stores an additional key-value pair.
|
void |
putBoolean(String key,
boolean value)
Stores an additional key-value pair.
|
void |
putInt(String key,
int value)
Stores an additional key-value pair.
|
void |
putLong(String key,
long value)
Stores an additional key-value pair.
|
void |
putString(String key,
String value)
Stores an additional key-value pair.
|
void |
putValue(String key,
double value)
Stores an additional key-value pair.
|
Object |
remove(String key)
Removes
key from this map. |
public void putInt(String key, int value)
key - the keyvalue - the valuepublic void putLong(String key, long value)
key - the keyvalue - the valuepublic void putValue(String key, double value)
key - the keyvalue - the valuepublic void putBoolean(String key, boolean value)
key - the keyvalue - the valuepublic void putString(String key, String value)
key - the keyvalue - the valuepublic void put(String key, Object value)
key - the keyvalue - the valuepublic Object remove(String key)
key from this map.key - some key of an entry to removenullpublic String[] keys()
nullpublic String getString(String key)
key.key - the key of some entryIllegalArgumentException - if there is nothing stored for key or if the
stored object has the wrong typepublic int getInt(String key)
key.key - the key of some entryIllegalArgumentException - if there is nothing stored for key or if the
stored object has the wrong typepublic long getLong(String key)
key.key - the key of some entryIllegalArgumentException - if there is nothing stored for key or if the
stored object has the wrong typepublic double getDouble(String key)
key.key - the key of some entryIllegalArgumentException - if there is nothing stored for key or if the
stored object has the wrong typepublic boolean getBoolean(String key)
key.key - the key of some entryIllegalArgumentException - if there is nothing stored for key or if the
stored object has the wrong typepublic Object get(String key)
key.key - the key of some entrynullpublic boolean contains(String key)
key.key - the key to searchtrue if data exists, false otherwisepublic boolean contains(String... keys)
key.keys - the keys to searchtrue if data exists for all the keys, false otherwiseCopyright © 2017 Docking Frames. All rights reserved.