public interface ComparableElement<E>
extends java.lang.Comparable<E>
Modifier and Type | Interface and Description |
---|---|
static interface |
ComparableElement.Comparison<E>
A comparison of the typed element.
|
Modifier and Type | Method and Description |
---|---|
int |
compareTo(E element)
The recommended implementation of this method is:
public int compareTo(E element)
{
return comparison(element).value();
}
|
ComparableElement.Comparison<E> |
compareWith(E element)
Returns a result that provides a
ComparableElement.Comparison of this element
with that of the element parameter. |
ComparableElement.Comparison<E> compareWith(E element)
ComparableElement.Comparison
of this element
with that of the element parameter.element
- to be compared with.