public class Diff<E,V extends Comparable<? super V>> extends Object implements Comparable<Diff<E,V>>
Comparable
and the entities
can be sorted by ascending values.Constructor and Description |
---|
Diff(E entity,
V value)
Constructor of the pair (entity, value).
|
public E getEntity()
public V getValue()
public void setValue(V value)
value
- the value of the entity.public int compareTo(Diff<E,V> d)
compareTo
in interface Comparable<Diff<E,V extends Comparable<? super V>>>
d
- the entity to be compared to.