Package adams.data.indexedsplits
Class MetaData
- java.lang.Object
-
- java.util.AbstractMap<K,V>
-
- java.util.HashMap<String,Object>
-
- adams.data.indexedsplits.MetaData
-
- All Implemented Interfaces:
Serializable
,Cloneable
,Map<String,Object>
public class MetaData extends HashMap<String,Object>
For storing meta-data.- Author:
- FracPete (fracpete at waikato dot ac dot nz)
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K extends Object,V extends Object>, AbstractMap.SimpleImmutableEntry<K extends Object,V extends Object>
-
-
Constructor Summary
Constructors Constructor Description MetaData()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
getBoolean(String key, boolean defValue)
Returns the boolean value associated with the key or the default value if not present or not a boolean or string representing a boolean.double
getDouble(String key, double defValue)
Returns the double value associated with the key or the default value if not present or not a number or string representing a double.int
getInteger(String key, int defValue)
Returns the integer value associated with the key or the default value if not present or not a number or string representing an integer.String
getString(String key, String defValue)
Returns the string value associated with the key or the default value if not present or not a string.-
Methods inherited from class java.util.HashMap
clear, clone, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, forEach, get, getOrDefault, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, values
-
Methods inherited from class java.util.AbstractMap
equals, hashCode, toString
-
-
-
-
Method Detail
-
getInteger
public int getInteger(String key, int defValue)
Returns the integer value associated with the key or the default value if not present or not a number or string representing an integer.- Parameters:
key
- the key to retrievedefValue
- the default value- Returns:
- the retrieved value or the default value
-
getDouble
public double getDouble(String key, double defValue)
Returns the double value associated with the key or the default value if not present or not a number or string representing a double.- Parameters:
key
- the key to retrievedefValue
- the default value- Returns:
- the retrieved value or the default value
-
getBoolean
public boolean getBoolean(String key, boolean defValue)
Returns the boolean value associated with the key or the default value if not present or not a boolean or string representing a boolean.- Parameters:
key
- the key to retrievedefValue
- the default value- Returns:
- the retrieved value or the default value
-
-