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

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

public final class LongToObject<V>
extends Object
implements KeyValue<Long,V>


Field Summary
 long key
           
 V value
           
 
Constructor Summary
LongToObject(long aKey, V aValue)
           
LongToObject(Long aKey, V aValue)
           
 
Method Summary
 int compareTo(KeyValue<Long,?> aReference)
           
 int compareTo(LongToObject<V> aReference)
           
 boolean equals(Object obj)
           
 Long 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 long key

value

public final V value
Constructor Detail

LongToObject

public LongToObject(long aKey,
                    V aValue)

LongToObject

public LongToObject(Long aKey,
                    V aValue)
Method Detail

compareTo

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

compareTo

public int compareTo(LongToObject<V> aReference)

equals

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

getKey

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

getValue

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

hashCode

public int hashCode()
Overrides:
hashCode in class Object

toString

public String toString()
Overrides:
toString in class Object