public interface PropertiesAccessorMixin extends Keys<String,String>
Modifier and Type | Interface and Description |
---|---|
static interface |
PropertiesAccessorMixin.PropertiesBuilderMixin<T>
|
static interface |
PropertiesAccessorMixin.PropertiesMixin
Mixin with lots of accessing and mutating default methods for
String key/value Map or Dictionary
implementations. |
static interface |
PropertiesAccessorMixin.PropertiesMutatorMixin
|
Keys.MutableKeys<K,V>, Keys.MutableValues<K,V>
Modifier and Type | Method and Description |
---|---|
default boolean |
containsKey(Enum<?> aKey)
Tests whether there is an element with the given key.
|
default String |
get(Enum<?> aKey)
Retrieves the element assigned to the given key.
|
default Boolean |
getBoolean(Enum<?> aKey)
Returns the
Boolean value of the property referred to by the key. |
default Boolean |
getBoolean(String aKey)
Returns the
Boolean value of the property referred to by the key. |
default Byte |
getByte(Enum<?> aKey)
Returns the
Byte value of the property referred to by the key. |
default Byte |
getByte(String aKey)
Returns the
Byte value of the property referred to by the key. |
default Character |
getCharacter(Enum<?> aKey)
Retrieves the
Character assigned to the given key. |
default Character |
getCharacter(String aKey)
Returns the
Character value of the property referred to by the
key. |
default Double |
getDouble(Enum<?> aKey)
Returns the
Double value of the property referred to by the key. |
default Double |
getDouble(String aKey)
Returns the
Double value of the property referred to by the key. |
default Float |
getFloat(Enum<?> aKey)
Returns the
Float value of the property referred to by the key. |
default Float |
getFloat(String aKey)
Returns the
Float value of the property referred to by the key. |
default Integer |
getInteger(Enum<?> aKey)
Returns the
Integer value of the property referred to by the key. |
default Integer |
getInteger(String aKey)
Returns the
Integer value of the property referred to by the key. |
default Long |
getLong(Enum<?> aKey)
Returns the
Long value of the property referred to by the key. |
default Long |
getLong(String aKey)
Returns the
Long value of the property referred to by the key. |
default Short |
getShort(Enum<?> aKey)
Returns the
Short value of the property referred to by the key. |
default Short |
getShort(String aKey)
Returns the
Short value of the property referred to by the key. |
default String |
use(Enum<?> aKey)
Retrieves the element assigned to the given key.
|
default Boolean |
useBoolean(Enum<?> aKey)
Returns the
Boolean value of the property referred to by the key. |
default Boolean |
useBoolean(String aKey)
Returns the
Boolean value of the property referred to by the key. |
default Byte |
useByte(Enum<?> aKey)
Returns the
Byte value of the property referred to by the key. |
default Byte |
useByte(String aKey)
Returns the
Byte value of the property referred to by the key. |
default Double |
useDouble(Enum<?> aKey)
Returns the
Double value of the property referred to by the key. |
default Double |
useDouble(String aKey)
Returns the
Double value of the property referred to by the key. |
default Float |
useFloat(Enum<?> aKey)
Returns the
Float value of the property referred to by the key. |
default Float |
useFloat(String aKey)
Returns the
Float value of the property referred to by the key. |
default Integer |
useInteger(Enum<?> aKey)
Returns the
Integer value of the property referred to by the key. |
default Integer |
useInteger(String aKey)
Returns the
Integer value of the property referred to by the key. |
default Long |
useLong(Enum<?> aKey)
Returns the
Long value of the property referred to by the key. |
default Long |
useLong(String aKey)
Returns the
Long value of the property referred to by the key. |
default Short |
useShort(Enum<?> aKey)
Returns the
Short value of the property referred to by the key. |
default Short |
useShort(String aKey)
Returns the
Short value of the property referred to by the key. |
containsKey, containsValue, get, keySet, use, values
default Character getCharacter(String aKey) throws NumberFormatException
Character
value of the property referred to by the
key. As property keys and values are of type String
, the
String
value is converted accordingly.aKey
- The key for which to retrieve the value.Integer
representation of the key's String
value.NumberFormatException
- thrown in case conversion fails.default Integer getInteger(String aKey) throws NumberFormatException
Integer
value of the property referred to by the key.
As property keys and values are of type String
, the
String
value is converted accordingly.aKey
- The key for which to retrieve the value.Integer
representation of the key's String
value.NumberFormatException
- thrown in case conversion fails.default Long getLong(String aKey) throws NumberFormatException
Long
value of the property referred to by the key. As
property keys and values are of type String
, the String
value is converted accordingly.aKey
- The key for which to retrieve the value.Long
representation of the key's String
value.NumberFormatException
- thrown in case conversion fails.default Short getShort(String aKey) throws NumberFormatException
Short
value of the property referred to by the key.
As property keys and values are of type String
, the
String
value is converted accordingly.aKey
- The key for which to retrieve the value.Short
representation of the key's String
value.NumberFormatException
- thrown in case conversion fails.default Byte getByte(String aKey) throws NumberFormatException
Byte
value of the property referred to by the key. As
property keys and values are of type String
, the String
value is converted accordingly.aKey
- The key for which to retrieve the value.Byte
representation of the key's String
value.NumberFormatException
- thrown in case conversion fails.default Double getDouble(String aKey) throws NumberFormatException
Double
value of the property referred to by the key.
As property keys and values are of type String
, the
String
value is converted accordingly.aKey
- The key for which to retrieve the value.Double
representation of the key's String
value.NumberFormatException
- thrown in case conversion fails.default Float getFloat(String aKey) throws NumberFormatException
Float
value of the property referred to by the key.
As property keys and values are of type String
, the
String
value is converted accordingly.aKey
- The key for which to retrieve the value.Float
representation of the key's String
value.NumberFormatException
- thrown in case conversion fails.default Boolean getBoolean(String aKey) throws NumberFormatException
Boolean
value of the property referred to by the key.
As property keys and values are of type String
, the
String
value is converted accordingly.aKey
- The key for which to retrieve the value.Boolean
representation of the key's String
value.NumberFormatException
- thrown in case conversion fails.default boolean containsKey(Enum<?> aKey)
Enum.toString()
method
is used on the enumeration to resolve the enumeration to a {link String}
key.aKey
- The key for which to test whether there is an element.default String get(Enum<?> aKey)
Enum.toString()
method
is used on the enumeration to resolve the enumeration to a {link String}
key.aKey
- The key for which to get the element.default Character getCharacter(Enum<?> aKey) throws NumberFormatException
Character
assigned to the given key.
As the key passed is an enumeration, the Enum.toString()
method
is used on the enumeration to resolve the enumeration to a {link String}
key.aKey
- The key for which to get the element.NumberFormatException
default Integer getInteger(Enum<?> aKey) throws NumberFormatException
Integer
value of the property referred to by the key.
As property keys and values are of type String
, the
String
value is converted accordingly.
As the key passed is an enumeration, the Enum.toString()
method
is used on the enumeration to resolve the enumeration to a {link String}
key.aKey
- The key for which to retrieve the value.Integer
representation of the key's String
value.NumberFormatException
- thrown in case conversion fails.default Short getShort(Enum<?> aKey) throws NumberFormatException
Short
value of the property referred to by the key.
As property keys and values are of type String
, the
String
value is converted accordingly.
As the key passed is an enumeration, the Enum.toString()
method
is used on the enumeration to resolve the enumeration to a {link String}
key.aKey
- The key for which to retrieve the value.Short
representation of the key's String
value.NumberFormatException
- thrown in case conversion fails.default Byte getByte(Enum<?> aKey) throws NumberFormatException
Byte
value of the property referred to by the key. As
property keys and values are of type String
, the String
value is converted accordingly.
As the key passed is an enumeration, the Enum.toString()
method
is used on the enumeration to resolve the enumeration to a {link String}
key.aKey
- The key for which to retrieve the value.Byte
representation of the key's String
value.NumberFormatException
- thrown in case conversion fails.default Double getDouble(Enum<?> aKey) throws NumberFormatException
Double
value of the property referred to by the key.
As property keys and values are of type String
, the
String
value is converted accordingly.
As the key passed is an enumeration, the Enum.toString()
method
is used on the enumeration to resolve the enumeration to a {link String}
key.aKey
- The key for which to retrieve the value.Double
representation of the key's String
value.NumberFormatException
- thrown in case conversion fails.default Float getFloat(Enum<?> aKey) throws NumberFormatException
Float
value of the property referred to by the key.
As property keys and values are of type String
, the
String
value is converted accordingly.
As the key passed is an enumeration, the Enum.toString()
method
is used on the enumeration to resolve the enumeration to a {link String}
key.aKey
- The key for which to retrieve the value.Float
representation of the key's String
value.NumberFormatException
- thrown in case conversion fails.default Boolean getBoolean(Enum<?> aKey) throws NumberFormatException
Boolean
value of the property referred to by the key.
As property keys and values are of type String
, the
String
value is converted accordingly.
As the key passed is an enumeration, the Enum.toString()
method
is used on the enumeration to resolve the enumeration to a {link String}
key.aKey
- The key for which to retrieve the value.Boolean
representation of the key's String
value.NumberFormatException
- thrown in case conversion fails.default Long getLong(Enum<?> aKey) throws NumberFormatException
Long
value of the property referred to by the key. As
property keys and values are of type String
, the String
value is converted accordingly.
As the key passed is an enumeration, the Enum.toString()
method
is used on the enumeration to resolve the enumeration to a {link String}
key.aKey
- The key for which to retrieve the value.Long
representation of the key's String
value.NumberFormatException
- thrown in case conversion fails.default Integer useInteger(String aKey) throws NumberFormatException, KeyNotFoundException
Integer
value of the property referred to by the key.
As property keys and values are of type String
, the
String
value is converted accordingly.
In case the given key does not exist, then an
KeyNotFoundException
is thrown.aKey
- The key for which to retrieve the value.Integer
representation of the key's String
value.NumberFormatException
- thrown in case conversion fails.KeyNotFoundException
- thrown in case this instance does not
contain the requested element (no such key found in the
collection).default Long useLong(String aKey) throws NumberFormatException, KeyNotFoundException
Long
value of the property referred to by the key. As
property keys and values are of type String
, the String
value is converted accordingly.
In case the given key does not exist, then an
KeyNotFoundException
is thrown.aKey
- The key for which to retrieve the value.Long
representation of the key's String
value.NumberFormatException
- thrown in case conversion fails.KeyNotFoundException
- thrown in case this instance does not
contain the requested element (no such key found in the
collection).default Short useShort(String aKey) throws NumberFormatException, KeyNotFoundException
Short
value of the property referred to by the key.
As property keys and values are of type String
, the
String
value is converted accordingly.
In case the given key does not exist, then an
KeyNotFoundException
is thrown.aKey
- The key for which to retrieve the value.Short
representation of the key's String
value.NumberFormatException
- thrown in case conversion fails.KeyNotFoundException
- thrown in case this instance does not
contain the requested element (no such key found in the
collection).default Byte useByte(String aKey) throws NumberFormatException, KeyNotFoundException
Byte
value of the property referred to by the key. As
property keys and values are of type String
, the String
value is converted accordingly.
In case the given key does not exist, then an
KeyNotFoundException
is thrown.aKey
- The key for which to retrieve the value.Byte
representation of the key's String
value.NumberFormatException
- thrown in case conversion fails.KeyNotFoundException
- thrown in case this instance does not
contain the requested element (no such key found in the
collection).default Double useDouble(String aKey) throws NumberFormatException, KeyNotFoundException
Double
value of the property referred to by the key.
As property keys and values are of type String
, the
String
value is converted accordingly.
In case the given key does not exist, then an
KeyNotFoundException
is thrown.aKey
- The key for which to retrieve the value.Double
representation of the key's String
value.NumberFormatException
- thrown in case conversion fails.KeyNotFoundException
- thrown in case this instance does not
contain the requested element (no such key found in the
collection).default Float useFloat(String aKey) throws NumberFormatException, KeyNotFoundException
Float
value of the property referred to by the key.
As property keys and values are of type String
, the
String
value is converted accordingly.
In case the given key does not exist, then an
KeyNotFoundException
is thrown.aKey
- The key for which to retrieve the value.Float
representation of the key's String
value.NumberFormatException
- thrown in case conversion fails.KeyNotFoundException
- thrown in case this instance does not
contain the requested element (no such key found in the
collection).default Boolean useBoolean(String aKey) throws NumberFormatException, KeyNotFoundException
Boolean
value of the property referred to by the key.
As property keys and values are of type String
, the
String
value is converted accordingly.
In case the given key does not exist, then an
KeyNotFoundException
is thrown.aKey
- The key for which to retrieve the value.Boolean
representation of the key's String
value.NumberFormatException
- thrown in case conversion fails.KeyNotFoundException
- thrown in case this instance does not
contain the requested element (no such key found in the
collection).default String use(Enum<?> aKey) throws KeyNotFoundException
KeyNotFoundException
is thrown.
As the key passed is an enumeration, the Enum.toString()
method
is used on the enumeration to resolve the enumeration to a {link String}
key.aKey
- The key for which to use the element.KeyNotFoundException
- thrown in case this instance does not
contain the requested element (no such key found in the
collection).default Integer useInteger(Enum<?> aKey) throws NumberFormatException, KeyNotFoundException
Integer
value of the property referred to by the key.
As property keys and values are of type String
, the
String
value is converted accordingly.
In case the given key does not exist, then an
KeyNotFoundException
is thrown.
As the key passed is an enumeration, the Enum.toString()
method
is used on the enumeration to resolve the enumeration to a {link String}
key.aKey
- The key for which to retrieve the value.Integer
representation of the key's String
value.NumberFormatException
- thrown in case conversion fails.KeyNotFoundException
- thrown in case this instance does not
contain the requested element (no such key found in the
collection).default Short useShort(Enum<?> aKey) throws NumberFormatException, KeyNotFoundException
Short
value of the property referred to by the key.
As property keys and values are of type String
, the
String
value is converted accordingly.
In case the given key does not exist, then an
KeyNotFoundException
is thrown.
As the key passed is an enumeration, the Enum.toString()
method
is used on the enumeration to resolve the enumeration to a {link String}
key.aKey
- The key for which to retrieve the value.Short
representation of the key's String
value.NumberFormatException
- thrown in case conversion fails.KeyNotFoundException
- thrown in case this instance does not
contain the requested element (no such key found in the
collection).default Byte useByte(Enum<?> aKey) throws NumberFormatException, KeyNotFoundException
Byte
value of the property referred to by the key. As
property keys and values are of type String
, the String
value is converted accordingly.
In case the given key does not exist, then an
KeyNotFoundException
is thrown.
As the key passed is an enumeration, the Enum.toString()
method
is used on the enumeration to resolve the enumeration to a {link String}
key.aKey
- The key for which to retrieve the value.Byte
representation of the key's String
value.NumberFormatException
- thrown in case conversion fails.KeyNotFoundException
- thrown in case this instance does not
contain the requested element (no such key found in the
collection).default Double useDouble(Enum<?> aKey) throws NumberFormatException, KeyNotFoundException
Double
value of the property referred to by the key.
As property keys and values are of type String
, the
String
value is converted accordingly.
In case the given key does not exist, then an
KeyNotFoundException
is thrown.
As the key passed is an enumeration, the Enum.toString()
method
is used on the enumeration to resolve the enumeration to a {link String}
key.aKey
- The key for which to retrieve the value.Double
representation of the key's String
value.NumberFormatException
- thrown in case conversion fails.KeyNotFoundException
- thrown in case this instance does not
contain the requested element (no such key found in the
collection).default Float useFloat(Enum<?> aKey) throws NumberFormatException, KeyNotFoundException
Float
value of the property referred to by the key.
As property keys and values are of type String
, the
String
value is converted accordingly.
In case the given key does not exist, then an
KeyNotFoundException
is thrown.
As the key passed is an enumeration, the Enum.toString()
method
is used on the enumeration to resolve the enumeration to a {link String}
key.aKey
- The key for which to retrieve the value.Float
representation of the key's String
value.NumberFormatException
- thrown in case conversion fails.KeyNotFoundException
- thrown in case this instance does not
contain the requested element (no such key found in the
collection).default Boolean useBoolean(Enum<?> aKey) throws NumberFormatException, KeyNotFoundException
Boolean
value of the property referred to by the key.
As property keys and values are of type String
, the
String
value is converted accordingly.
In case the given key does not exist, then an
KeyNotFoundException
is thrown.
As the key passed is an enumeration, the Enum.toString()
method
is used on the enumeration to resolve the enumeration to a {link String}
key.aKey
- The key for which to retrieve the value.Boolean
representation of the key's String
value.NumberFormatException
- thrown in case conversion fails.KeyNotFoundException
- thrown in case this instance does not
contain the requested element (no such key found in the
collection).default Long useLong(Enum<?> aKey) throws NumberFormatException, KeyNotFoundException
Long
value of the property referred to by the key. As
property keys and values are of type String
, the String
value is converted accordingly.
In case the given key does not exist, then an
KeyNotFoundException
is thrown.
As the key passed is an enumeration, the Enum.toString()
method
is used on the enumeration to resolve the enumeration to a {link String}
key.aKey
- The key for which to retrieve the value.Long
representation of the key's String
value.NumberFormatException
- thrown in case conversion fails.KeyNotFoundException
- thrown in case this instance does not
contain the requested element (no such key found in the
collection).Copyright © 2018. All rights reserved.