org.ojalgo.type.keyvalue
Class IntToObject<V>

java.lang.Object
  extended by org.ojalgo.type.keyvalue.IntToObject<V>
All Implemented Interfaces:
Comparable<KeyValue<Integer,?>>, KeyValue<Integer,V>

public final class IntToObject<V>
extends Object
implements KeyValue<Integer,V>


Field Summary
 int key
           
 V value
           
 
Constructor Summary
IntToObject(Integer aKey, V aValue)
           
IntToObject(int aKey, V aValue)
           
 
Method Summary
 int compareTo(IntToObject<V> aReference)
           
 int compareTo(KeyValue<Integer,?> aReference)
           
 boolean equals(Object obj)
           
 Integer getKey()
           
 V getValue()
           
 int hashCode()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

key

public final int key

value

public final V value
Constructor Detail

IntToObject

public IntToObject(int aKey,
                   V aValue)

IntToObject

public IntToObject(Integer aKey,
                   V aValue)
Method Detail

compareTo

public int compareTo(IntToObject<V> aReference)

compareTo

public int compareTo(KeyValue<Integer,?> aReference)
Specified by:
compareTo in interface Comparable<KeyValue<Integer,?>>

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

getKey

public Integer getKey()
Specified by:
getKey in interface KeyValue<Integer,V>

getValue

public V getValue()
Specified by:
getValue in interface KeyValue<Integer,V>

hashCode

public int hashCode()
Overrides:
hashCode in class Object

toString

public String toString()
Overrides:
toString in class Object