com.caucho.util
Interface ComparableElement.Comparison<E>

All Known Implementing Classes:
TimeInterval.Comparison
Enclosing interface:
ComparableElement<E>

public static interface ComparableElement.Comparison<E>

A comparison of the typed element. The interface can be readily implemented by declaring an enum enumerating the comparisons, each with the value. This permits a switch statement to used the comparison method. A well designed set of comparisons can provide more effective use of tree-backed maps and sets.


Method Summary
 int value()
          The value assigned to this comparison.
 

Method Detail

value

int value()
The value assigned to this comparison.