Package adams.flow.core
Class AdditionalOptions
- java.lang.Object
-
- java.util.Dictionary<K,V>
-
- java.util.Hashtable<String,String>
-
- adams.flow.core.AdditionalOptions
-
- All Implemented Interfaces:
Serializable
,Cloneable
,Map<String,String>
public class AdditionalOptions extends Hashtable<String,String>
An extended Hashtable class for easier retrieval of options.- Version:
- $Revision$
- Author:
- fracpete (fracpete at waikato dot ac dot nz)
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description AdditionalOptions()
Initializes an empty container.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Boolean
getBoolean(String key)
Returns the stored boolean.Boolean
getBoolean(String key, Boolean defValue)
Returns the stored boolean or the default value if not found.Double
getDouble(String key)
Returns the stored double.Double
getDouble(String key, Double defValue)
Returns the stored double or the default value if not found.Integer
getInteger(String key)
Returns the stored integer.Integer
getInteger(String key, Integer defValue)
Returns the stored integer or the default value if not found.PlaceholderFile
getPlaceholderFile(String key)
Returns the stored placeholder file.PlaceholderFile
getPlaceholderFile(String key, PlaceholderFile defValue)
Returns the stored placeholder file or the default value if not found.String
getString(String key)
Returns the stored string.String
getString(String key, String defValue)
Returns the stored string or the default value if not found.void
putBoolean(String key, Boolean value)
Stores the given boolean value under the specified key.void
putDouble(String key, Double value)
Stores the given double value under the specified key.void
putInteger(String key, Integer value)
Stores the given integer value under the specified key.void
putPlaceholderFile(String key, PlaceholderFile value)
Stores the given placeholder file value under the specified key.void
putString(String key, String value)
Stores the given string value under the specified key.-
Methods inherited from class java.util.Hashtable
clear, clone, compute, computeIfAbsent, computeIfPresent, contains, containsKey, containsValue, elements, entrySet, equals, forEach, get, getOrDefault, hashCode, isEmpty, keys, keySet, merge, put, putAll, putIfAbsent, rehash, remove, remove, replace, replace, replaceAll, size, toString, values
-
-
-
-
Method Detail
-
putBoolean
public void putBoolean(String key, Boolean value)
Stores the given boolean value under the specified key.- Parameters:
key
- the key to store the value undervalue
- the boolean value to store
-
putInteger
public void putInteger(String key, Integer value)
Stores the given integer value under the specified key.- Parameters:
key
- the key to store the value undervalue
- the integer value to store
-
putDouble
public void putDouble(String key, Double value)
Stores the given double value under the specified key.- Parameters:
key
- the key to store the value undervalue
- the double value to store
-
putString
public void putString(String key, String value)
Stores the given string value under the specified key.- Parameters:
key
- the key to store the value undervalue
- the string value to store
-
putPlaceholderFile
public void putPlaceholderFile(String key, PlaceholderFile value)
Stores the given placeholder file value under the specified key.- Parameters:
key
- the key to store the value undervalue
- the placeholder file value to store
-
getBoolean
public Boolean getBoolean(String key)
Returns the stored boolean.- Parameters:
key
- the key to look for- Returns:
- the value or null if not found
-
getBoolean
public Boolean getBoolean(String key, Boolean defValue)
Returns the stored boolean or the default value if not found.- Parameters:
key
- the key to look fordefValue
- the default value- Returns:
- the value or the default value if not found
-
getInteger
public Integer getInteger(String key)
Returns the stored integer.- Parameters:
key
- the key to look for- Returns:
- the value or null if not found
-
getInteger
public Integer getInteger(String key, Integer defValue)
Returns the stored integer or the default value if not found.- Parameters:
key
- the key to look fordefValue
- the default value- Returns:
- the value or the default value if not found
-
getDouble
public Double getDouble(String key)
Returns the stored double.- Parameters:
key
- the key to look for- Returns:
- the value or null if not found
-
getDouble
public Double getDouble(String key, Double defValue)
Returns the stored double or the default value if not found.- Parameters:
key
- the key to look fordefValue
- the default value- Returns:
- the value or the default value if not found
-
getString
public String getString(String key)
Returns the stored string.- Parameters:
key
- the key to look for- Returns:
- the value or null if not found
-
getString
public String getString(String key, String defValue)
Returns the stored string or the default value if not found.- Parameters:
key
- the key to look fordefValue
- the default value- Returns:
- the value or the default value if not found
-
getPlaceholderFile
public PlaceholderFile getPlaceholderFile(String key)
Returns the stored placeholder file.- Parameters:
key
- the key to look for- Returns:
- the value or null if not found
-
getPlaceholderFile
public PlaceholderFile getPlaceholderFile(String key, PlaceholderFile defValue)
Returns the stored placeholder file or the default value if not found.- Parameters:
key
- the key to look fordefValue
- the default value- Returns:
- the value or the default value if not found
-
-