@SuppressWarnings({ "rawtypes", "unchecked" }) public abstract class AbstractTypeConvertingMap extends GroovyObjectSupport implements Map, Cloneable
AbstractTypeConvertingMap is a Map with type conversion capabilities. Type converting maps have no inherent ordering. Two maps with identical entries but arranged in a different order internally are considered equal.
| Modifiers | Name | Description |
|---|---|---|
protected Map |
wrappedMap |
| Constructor and description |
|---|
AbstractTypeConvertingMap() |
AbstractTypeConvertingMap(Map map) |
| Type Params | Return Type | Name and description |
|---|---|---|
|
public boolean |
asBoolean() |
|
public void |
clear() |
|
public boolean |
containsKey(Object k) |
|
public boolean |
containsValue(Object v) |
|
public Date |
date(String name)Obtains a date for the given parameter name |
|
public Date |
date(String name, String format)Obtains a date for the given parameter name and format |
|
public Date |
date(String name, Collection<String> formats)Obtains a date for the given parameter name and format |
|
public Set |
entrySet() |
|
public boolean |
equals(Map that) |
|
public boolean |
equals(Object that) |
|
public Object |
get(Object k) |
|
public Boolean |
getBoolean(String name)Helper method for obtaining boolean value from parameter |
|
public Boolean |
getBoolean(String name, Boolean defaultValue) |
|
public Byte |
getByte(String name)Helper method for obtaining integer value from parameter |
|
public Byte |
getByte(String name, Integer defaultValue) |
|
public Character |
getChar(String name)Helper method for obtaining Character value from parameter |
|
public Character |
getChar(String name, Integer defaultValue) |
|
public Date |
getDate(String name)Obtains a date for the parameter name using the default format |
|
public Date |
getDate(String name, String format)Obtains a date from the parameter using the given format |
|
public Double |
getDouble(String name)Helper method for obtaining double value from parameter |
|
public Double |
getDouble(String name, Double defaultValue) |
|
public Float |
getFloat(String name)Helper method for obtaining float value from parameter |
|
public Float |
getFloat(String name, Float defaultValue) |
|
public Integer |
getInt(String name)Helper method for obtaining integer value from parameter |
|
public Integer |
getInt(String name, Integer defaultValue) |
|
public List |
getList(String name)Helper method for obtaining a list of values from parameter |
|
public Long |
getLong(String name)Helper method for obtaining long value from parameter |
|
public Long |
getLong(String name, Long defaultValue) |
|
public Short |
getShort(String name)Helper method for obtaining short value from parameter |
|
public Short |
getShort(String name, Integer defaultValue) |
|
public int |
hashCode() |
|
public boolean |
isEmpty() |
|
public Set |
keySet() |
|
public List |
list(String name) |
|
public Object |
put(Object k, Object v) |
|
public void |
putAll(Map m) |
|
public Object |
remove(Object o) |
|
public int |
size() |
|
public String |
toString() |
|
public Collection |
values() |
| Methods inherited from class | Name |
|---|---|
class GroovyObjectSupport |
equals, getClass, getMetaClass, getProperty, hashCode, invokeMethod, notify, notifyAll, setMetaClass, setProperty, toString, wait, wait, wait |
Obtains a date for the given parameter name
name - The name of the parameterObtains a date for the given parameter name and format
name - The name of the parameterformat - The formatObtains a date for the given parameter name and format
name - The name of the parameterformats - The formatsHelper method for obtaining boolean value from parameter
name - The name of the parameterHelper method for obtaining integer value from parameter
name - The name of the parameterHelper method for obtaining Character value from parameter
name - The name of the parameterObtains a date for the parameter name using the default format
Obtains a date from the parameter using the given format
name - The nameformat - The formatHelper method for obtaining double value from parameter
name - The name of the parameterHelper method for obtaining float value from parameter
name - The name of the parameterHelper method for obtaining integer value from parameter
name - The name of the parameterHelper method for obtaining a list of values from parameter
name - The name of the parameterHelper method for obtaining long value from parameter
name - The name of the parameterHelper method for obtaining short value from parameter
name - The name of the parameter