public interface PropertiesReader extends PropertiesTrait
A contracts that specifies methods for reading property values. class.
Note that with respect to null keys and values the behavior the methods in contract are
dependent on the Map implementation returned by PropertiesTrait.getProperties()
| Modifier and Type | Method and Description |
|---|---|
default <E> Collection<E> |
findCollection(String key)
Find a collection value associated with the given key.
|
default <K,V> Map<K,V> |
findMap(String key)
Find a map typed associated with the given key.
|
default <T> Optional<T> |
findProperty(String key)
Find the value associated with the given key.
|
default PropertiesReader |
getPropertiesReader(String key)
Get a PropertiesReader instance for the given mapKey.
|
default <T> T |
getProperty(String key)
Get the value the value associated with the given key.
|
getProperties, isEmptydefault PropertiesReader getPropertiesReader(String key)
Get a PropertiesReader instance for the given mapKey. Note that:
key - the key associated with the mapdefault <T> T getProperty(String key)
T - the value typekey - the keydefault <T> Optional<T> findProperty(String key)
T - the value typekey - the key associated with the propertydefault <E> Collection<E> findCollection(String key)
Collections.emptyList() will be returned.E - the collection element typekey - the key associated with the queuedefault <K,V> Map<K,V> findMap(String key)
Collections.emptyMap() is returned.K - the map key typeV - the map value typekey - the key associated with the mapCopyright © 2016–2018 Testify Project. All rights reserved.