public class TypedMap
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String | COPYRIGHT
The IBM Copyright notice field.
|
Constructor and Description |
---|
TypedMap(java.util.Map argMap)
This constructor creates a typed property object from the given hashtable.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object | get(java.lang.String key)
This method returns the Object associated with the specified key.
|
java.lang.Object | get(java.lang.String key, java.lang.Object def)
This method returns the Object associated with the specified key.
|
java.lang.String[] | getArray(java.lang.String key)
This method returns the object associated with the given key as an array of String objects.
|
java.lang.String[] | getArray(java.lang.String key, java.lang.String[] def)
This method returns the object associated with the given key as an array of String objects.
|
java.math.BigDecimal | getBigDecimal(java.lang.String key)
This method returns the object associated with the given key as a BigDecimal object.
|
java.math.BigDecimal | getBigDecimal(java.lang.String key, java.math.BigDecimal def)
This method returns the object associated with the given key as a BigDecimal object.
|
boolean | getBoolean(java.lang.String key)
This method returns the object associated with the given key as a boolean value.
|
boolean | getBoolean(java.lang.String key, boolean def)
This method returns the object associated with the given key as a boolean value.
|
java.lang.Double | getDouble(java.lang.String key)
This method returns the object associated with the given key as a Double object.
|
java.lang.Double | getDouble(java.lang.String key, double def)
This method returns the object associated with the given key as a Double object.
|
java.lang.Double | getDouble(java.lang.String key, java.lang.Double def)
This method returns the object associated with the given key as a Double object.
|
double | getDoubleValue(java.lang.String key)
This method returns the object associated with the given key as a double value.
|
double | getDoubleValue(java.lang.String key, double def)
This method returns the object associated with the given key as a double value.
|
java.lang.Float | getFloat(java.lang.String key)
This method returns the object associated with the given key as a Float object.
|
java.lang.Float | getFloat(java.lang.String key, float def)
This method returns the object associated with the given key as a Float object.
|
java.lang.Float | getFloat(java.lang.String key, java.lang.Float def)
This method returns the object associated with the given key as a Float object.
|
float | getFloatValue(java.lang.String key)
This method returns the object associated with the given key as a float value.
|
float | getFloatValue(java.lang.String key, float def)
This method returns the value associated with the given key as a float value.
|
java.lang.Integer | getInteger(java.lang.String key)
This method returns the object associated with the given key as an Integer object.
|
java.lang.Integer | getInteger(java.lang.String key, int def)
This method returns the object associated with the given key as an Integer object.
|
java.lang.Integer | getInteger(java.lang.String key, java.lang.Integer def)
This method returns the object associated with the given key as an Integer object.
|
int | getIntValue(java.lang.String key)
This method returns the object associated with the given key as an integer value.
|
int | getIntValue(java.lang.String key, int def)
This method returns the object associated with the given key as an integer value.
|
java.lang.Long | getLong(java.lang.String key)
This method returns the object associated with the given key as a Long object.
|
java.lang.Long | getLong(java.lang.String key, long def)
This method returns the object associated with the given key as a Long object.
|
java.lang.Long | getLong(java.lang.String key, java.lang.Long def)
This method returns the object associated with the given key as a Long object.
|
java.lang.Long[] | getLongArray(java.lang.String key)
This method returns the object associated with the given key as an array of Long objects.
|
java.lang.Long[] | getLongArray(java.lang.String key, java.lang.Long[] def)
This method returns the object associated with the given key as an array of Long objects.
|
long | getLongValue(java.lang.String key)
This method returns the object associated with the given key as a long value.
|
long | getLongValue(java.lang.String key, long def)
This method returns the object associated with the given key as a long value.
|
java.util.Map | getMap() |
java.lang.Short | getShort(java.lang.String key)
This method returns the object associated with the given key as a Short object.
|
java.lang.Short | getShort(java.lang.String key, short def)
This method returns the object associated with the given key as a Short object.
|
java.lang.Short | getShort(java.lang.String key, java.lang.Short def)
This method returns the object associated with the given key as a Short object.
|
short | getShortValue(java.lang.String key)
This method returns the object associated with the given key as a short value.
|
short | getShortValue(java.lang.String key, short def)
This method returns the object associated with the given key as a short value..
|
java.lang.String | getString(java.lang.String key)
This method returns the value associated with the key as a String object.
|
java.lang.String | getString(java.lang.String key, java.lang.String def)
This method returns the object associated with the key as a String object.
|
static java.lang.String[] | objectToArrayOfString(java.lang.Object aObject, java.lang.String[] def)
This method converts a TypedProperty object to an array of String objects.
|
static java.lang.String | objectToString(java.lang.Object aObject, java.lang.String def)
This method converts a TypedProperty object to a String object.
|
void | setMap(java.util.Map argMap) |
public static final java.lang.String COPYRIGHT
public TypedMap(java.util.Map argMap)
public java.lang.Object get(java.lang.String key) throws GiftCenterException
public java.lang.Object get(java.lang.String key, java.lang.Object def)
public static java.lang.String[] objectToArrayOfString(java.lang.Object aObject, java.lang.String[] def)
public java.lang.String[] getArray(java.lang.String key) throws GiftCenterException
public java.lang.String[] getArray(java.lang.String key, java.lang.String[] def)
public java.math.BigDecimal getBigDecimal(java.lang.String key) throws GiftCenterException
public java.math.BigDecimal getBigDecimal(java.lang.String key, java.math.BigDecimal def) throws GiftCenterException
public boolean getBoolean(java.lang.String key) throws GiftCenterException
public boolean getBoolean(java.lang.String key, boolean def)
public java.lang.Double getDouble(java.lang.String key) throws GiftCenterException
public java.lang.Double getDouble(java.lang.String key, double def) throws GiftCenterException
public java.lang.Double getDouble(java.lang.String key, java.lang.Double def) throws GiftCenterException
public double getDoubleValue(java.lang.String key) throws GiftCenterException
public double getDoubleValue(java.lang.String key, double def) throws GiftCenterException
public java.lang.Float getFloat(java.lang.String key) throws GiftCenterException
public java.lang.Float getFloat(java.lang.String key, float def) throws GiftCenterException
public java.lang.Float getFloat(java.lang.String key, java.lang.Float def) throws GiftCenterException
public float getFloatValue(java.lang.String key) throws GiftCenterException
public float getFloatValue(java.lang.String key, float def) throws GiftCenterException
public java.lang.Integer getInteger(java.lang.String key) throws GiftCenterException
public java.lang.Integer getInteger(java.lang.String key, int def) throws GiftCenterException
public java.lang.Integer getInteger(java.lang.String key, java.lang.Integer def) throws GiftCenterException
public int getIntValue(java.lang.String key) throws GiftCenterException
public int getIntValue(java.lang.String key, int def) throws GiftCenterException
public java.lang.Long getLong(java.lang.String key) throws GiftCenterException
public java.lang.Long getLong(java.lang.String key, long def) throws GiftCenterException
public java.lang.Long getLong(java.lang.String key, java.lang.Long def) throws GiftCenterException
public java.lang.Long[] getLongArray(java.lang.String key) throws GiftCenterException, GiftCenterException
public java.lang.Long[] getLongArray(java.lang.String key, java.lang.Long[] def)
public long getLongValue(java.lang.String key) throws GiftCenterException
public long getLongValue(java.lang.String key, long def) throws GiftCenterException
public java.lang.Short getShort(java.lang.String key) throws GiftCenterException
public java.lang.Short getShort(java.lang.String key, java.lang.Short def) throws GiftCenterException
public java.lang.Short getShort(java.lang.String key, short def) throws GiftCenterException
public short getShortValue(java.lang.String key) throws GiftCenterException
public short getShortValue(java.lang.String key, short def) throws GiftCenterException
public static java.lang.String objectToString(java.lang.Object aObject, java.lang.String def)
public java.lang.String getString(java.lang.String key) throws GiftCenterException
public java.lang.String getString(java.lang.String key, java.lang.String def)
public java.util.Map getMap()
public void setMap(java.util.Map argMap)