K - The type of the keyspublic interface TypeCoercingMap<K>
extends java.util.Map<K,java.lang.String>
| Modifier and Type | Method and Description |
|---|---|
java.lang.Boolean |
asBool(K key)
Convert the value with given key to a Boolean, using
Boolean.valueOf(String). |
java.lang.Byte |
asByte(K key)
Convert the value with given key to a Byte, using
Byte.valueOf(String). |
java.lang.Integer |
asInt(K key)
Convert the value with given key to a Integer, using
Integer.valueOf(String). |
java.lang.Long |
asLong(K key)
Convert the value with given key to a Long, using
Long.valueOf(String). |
java.lang.Short |
asShort(K key)
Convert the value with given key to a Short, using
Short.valueOf(String). |
java.lang.Boolean asBool(K key)
Boolean.valueOf(String).key - The key of the value to convertBoolean.valueOf(String) if the value is not null, else nulljava.lang.Byte asByte(K key)
Byte.valueOf(String).key - The key of the value to convertByte.valueOf(String) if the value is not null, else nulljava.lang.Short asShort(K key) throws java.lang.NumberFormatException
Short.valueOf(String).key - The key of the value to convertShort.valueOf(String) if the value is not null, else nulljava.lang.NumberFormatException - if the value cannot be coercedjava.lang.Integer asInt(K key) throws java.lang.NumberFormatException
Integer.valueOf(String).key - The key of the value to convertInteger.valueOf(String) if the value is not null, else nulljava.lang.NumberFormatException - if the value cannot be coercedjava.lang.Long asLong(K key) throws java.lang.NumberFormatException
Long.valueOf(String).key - The key of the value to convertLong.valueOf(String) if the value is not null, else nulljava.lang.NumberFormatException - if the value cannot be coerced