org.sbml.jsbml.util
public class ValuePair<L extends java.lang.Comparable<? super L>,V extends java.lang.Comparable<? super V>> extends java.lang.Object implements java.lang.Cloneable, java.lang.Comparable<ValuePair<L,V>>, java.io.Serializable
Modifier and Type | Field and Description |
---|---|
private L |
l |
private static long |
serialVersionUID
Generated serial version identifier.
|
private V |
v |
Constructor and Description |
---|
ValuePair()
Creates a new
ValuePair with both attributes set to null . |
ValuePair(L l,
V v) |
ValuePair(ValuePair<L,V> valuePair) |
Modifier and Type | Method and Description |
---|---|
ValuePair<L,V> |
clone() |
int |
compareTo(L l,
V v)
Convenient method to compare two values to this
ValuePair . |
int |
compareTo(ValuePair<L,V> v) |
boolean |
equals(java.lang.Object object) |
L |
getL() |
V |
getV() |
int |
hashCode() |
boolean |
isSetL() |
boolean |
isSetV() |
void |
setL(L l) |
void |
setV(V v) |
java.lang.String |
toString() |
private static final long serialVersionUID
public ValuePair()
ValuePair
with both attributes set to null
.public int compareTo(L l, V v)
ValuePair
.l
- v
- ValuePair
is less than, equal to, or greater than the
combination of the two given values.compareTo(ValuePair)
public boolean equals(java.lang.Object object)
equals
in class java.lang.Object
public L getL()
public V getV()
public int hashCode()
hashCode
in class java.lang.Object
public boolean isSetL()
public boolean isSetV()
public void setL(L l)
l
- the l to setpublic void setV(V v)
v
- the v to setpublic java.lang.String toString()
toString
in class java.lang.Object