Class Pair<K,V>
- java.lang.Object
-
- com.hybris.cis.client.shared.models.Pair<K,V>
-
public class Pair<K,V> extends java.lang.ObjectThis class can be used to return a combination of generic types.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description KgetKey()VgetValue()static <K,V>
Pair<K,V>newInstance(K key, V value)Returns a new pair of the given generic type combination.voidsetKey(K key)voidsetValue(V value)
-
-
-
Method Detail
-
getKey
public K getKey()
-
setKey
public void setKey(K key)
-
getValue
public V getValue()
-
setValue
public void setValue(V value)
-
newInstance
public static <K,V> Pair<K,V> newInstance(K key, V value)
Returns a new pair of the given generic type combination.- Parameters:
key- the key generic objectvalue- the value generic object- Returns:
- a new pair of key and value
-
-