edu.stanford.nlp.util
Interface FuzzyInterval.FuzzyComparable<T>
- Type Parameters:
T - Type of the object to be compared
- All Superinterfaces:
- java.lang.Comparable<T>
- All Known Implementing Classes:
- JollyDayHolidays.JollyHoliday, SUTime.CompositePartialTime, SUTime.Duration, SUTime.DurationRange, SUTime.DurationWithFields, SUTime.DurationWithMillis, SUTime.GroundedTime, SUTime.InexactDuration, SUTime.InexactTime, SUTime.IsoDate, SUTime.IsoDateTime, SUTime.IsoTime, SUTime.OrdinalTime, SUTime.PartialTime, SUTime.RefTime, SUTime.RelativeTime, SUTime.SimpleTime, SUTime.Time, SUTime.TimeWithRange
- Enclosing class:
- FuzzyInterval<E extends FuzzyInterval.FuzzyComparable<E>>
public static interface FuzzyInterval.FuzzyComparable<T>
- extends java.lang.Comparable<T>
Interface with a looser ordering than Comparable.
If two objects are clearly comparable, compareTo will return -1,1,0 as before
If two objects are not quite comparable, compareTo will return it's best guess
|
Method Summary |
boolean |
isComparable(T other)
Returns whether this object is comparable with another object |
| Methods inherited from interface java.lang.Comparable |
compareTo |
isComparable
boolean isComparable(T other)
- Returns whether this object is comparable with another object
- Parameters:
other -
- Returns:
- Returns true if two objects are comparable, false otherwise
Stanford NLP Group