public abstract class AbstractAdapterProperties extends Object
On this level the basic access to properties as key-value pairs is handled. If you are looking for interpreted properties, check the concrete implementations of this abstract class.
| Constructor and Description |
|---|
AbstractAdapterProperties(Map<String,String> properties)
Create a new instance of
AdapterProperties from a key-value map |
| Modifier and Type | Method and Description |
|---|---|
boolean |
containsKey(String key)
Check if a property with the given key exists
|
Set<Map.Entry<String,String>> |
entrySet()
Get set of contained entries
|
boolean |
equals(Object o) |
String |
get(String key)
Get value for key
|
int |
hashCode() |
boolean |
isEmpty()
Check if the properties are empty
|
boolean |
isEnabled(String key)
Check if the switch with the given key is enabled
|
Set<String> |
keySet()
Get set of contained keys
|
Collection<String> |
values()
Get collection of contained values
|
public AbstractAdapterProperties(Map<String,String> properties)
AdapterProperties from a key-value mapproperties - map of property keys and valuespublic boolean isEmpty()
true if there are no propertiespublic boolean containsKey(String key)
key - property to search fortrue if the property list contains the property with the given keypublic boolean isEnabled(String key)
key - switch nametrue if the switch property exists and is enabledpublic String get(String key)
key - property to search fornull if the key-value pair does not existpublic Set<String> keySet()
public Collection<String> values()
public Set<Map.Entry<String,String>> entrySet()
Copyright © 2019. All rights reserved.