com.notnoop.mpns.internal
Class Pair<K,V>

java.lang.Object
  extended by com.notnoop.mpns.internal.Pair<K,V>
All Implemented Interfaces:
Map.Entry<K,V>

public class Pair<K,V>
extends Object
implements Map.Entry<K,V>


Field Summary
 K key
           
 V value
           
 
Constructor Summary
Pair(K k, V v)
           
 
Method Summary
 K getKey()
           
 V getValue()
           
static
<K,V> Pair<K,V>
of(K k, V v)
           
 V setValue(V value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.util.Map.Entry
equals, hashCode
 

Field Detail

key

public final K key

value

public final V value
Constructor Detail

Pair

public Pair(K k,
            V v)
Method Detail

getKey

public K getKey()
Specified by:
getKey in interface Map.Entry<K,V>

getValue

public V getValue()
Specified by:
getValue in interface Map.Entry<K,V>

setValue

public V setValue(V value)
Specified by:
setValue in interface Map.Entry<K,V>

of

public static <K,V> Pair<K,V> of(K k,
                                 V v)


Copyright © 2015. All Rights Reserved.