fleXplorer.Comparators
Interface PartialComparable<Type extends java.lang.Comparable<Type>>

All Known Implementing Classes:
Interval

public interface PartialComparable<Type extends java.lang.Comparable<Type>>

Version:
1.0
Author:
Nikos Armenatzoglou

Method Summary
 PartialComparison compareTo(Interval<Type> obj)
          Compares this object with the specified object for order.
 

Method Detail

compareTo

PartialComparison compareTo(Interval<Type> obj)
Compares this object with the specified object for order. Preconditions: Objects must not be null.
Postconditions: Compares this object with the specified object for order. Returns an enumeration type that defines the order of the objects.
Comparison.LESS if first object is less than the second one.
Comparison.GREATER if first object is greater than the second one.
Comparison.EQUALS if two objects are equals.
Comparison.NONCOMPARABLE if two objects are not comparable.

Parameters:
arg - Interval to be compared.
Returns:
Comparison.LESS if first object is less than the second one.
Comparison.GREATER if first object is greater than the second one.
Comparison.EQUALS if two objects are equals.
Comparison.NONCOMPARABLE if two objects are not comparable.