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

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

public final class StringToObject<V>
extends Object
implements KeyValue<String,V>


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

value

public final V value
Constructor Detail

StringToObject

public StringToObject(String aKey,
                      V aValue)
Method Detail

compareTo

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

equals

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

getKey

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

getValue

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

hashCode

public int hashCode()
Overrides:
hashCode in class Object

toString

public String toString()
Overrides:
toString in class Object