org.ojalgo.type
Class KeyValue<K extends Comparable<K>,V extends Number>

java.lang.Object
  extended by org.ojalgo.type.KeyValue<K,V>
All Implemented Interfaces:
Map.Entry<K,V>

public class KeyValue<K extends Comparable<K>,V extends Number>
extends Object
implements Map.Entry<K,V>

Author:
apete

Constructor Summary
KeyValue(K aKey, V aValue)
           
KeyValue(Map.Entry<K,V> anEntry)
           
KeyValue(Map<K,V> aMap, K aKey)
           
 
Method Summary
 boolean equals(Map.Entry<K,V> anEntry)
           
 boolean equals(Object anObj)
           
 K getKey()
           
 V getValue()
           
 int hashCode()
           
 V setValue(V aValue)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

KeyValue

public KeyValue(Map.Entry<K,V> anEntry)

KeyValue

public KeyValue(K aKey,
                V aValue)

KeyValue

public KeyValue(Map<K,V> aMap,
                K aKey)
Method Detail

equals

public boolean equals(Map.Entry<K,V> anEntry)

equals

public boolean equals(Object anObj)
Specified by:
equals in interface Map.Entry<K extends Comparable<K>,V extends Number>
Overrides:
equals in class Object

getKey

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

getValue

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

hashCode

public int hashCode()
Specified by:
hashCode in interface Map.Entry<K extends Comparable<K>,V extends Number>
Overrides:
hashCode in class Object

setValue

public V setValue(V aValue)
Specified by:
setValue in interface Map.Entry<K extends Comparable<K>,V extends Number>

toString

public String toString()
Overrides:
toString in class Object