org.ojalgo.type.keyvalue
Class StringToInt

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

public final class StringToInt
extends Object
implements KeyValue<String,Integer>


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

StringToInt

public StringToInt(String aKey,
                   int 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,Integer>

getValue

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

hashCode

public int hashCode()
Overrides:
hashCode in class Object

toString

public String toString()
Overrides:
toString in class Object