K - The generic type of the keyV - The generic type of the valuepublic final class KeyValuePair<K,V> extends Object implements Serializable
KeyValuePair represents a key value pair with generic parameters for the key
and value type.| Constructor and Description |
|---|
KeyValuePair() |
| Modifier and Type | Method and Description |
|---|---|
static <K,V> List<KeyValuePair<K,V>> |
toKeyValuePairs(Map<K,V> map)
Transforms the given
Map to a list of KeyValuePair's. |
static List<KeyValuePair<String,String>> |
toKeyValuePairs(Properties properties)
Transforms the given
Properties to a list of KeyValuePair's. |
public static <K,V> List<KeyValuePair<K,V>> toKeyValuePairs(Map<K,V> map)
Map to a list of KeyValuePair's.K - The generic type of the keyV - The generic type of the valuemap - the mapKeyValuePair's.public static List<KeyValuePair<String,String>> toKeyValuePairs(Properties properties)
Properties to a list of KeyValuePair's.properties - the propertiesKeyValuePair's.Copyright © 2015–2017 Alpha Ro Group UG (haftungsbeschrÀngt). All rights reserved.