org.ojalgo.type
Class KeyValue<K extends Comparable<K>,V extends Number>
java.lang.Object
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
KeyValue
public KeyValue(Map.Entry<K,V> anEntry)
KeyValue
public KeyValue(K aKey,
V aValue)
KeyValue
public KeyValue(Map<K,V> aMap,
K aKey)
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