Package org.onlab.util
Interface RichComparable<T>
- 
- Type Parameters:
- T- type of instance to be compared
 - All Superinterfaces:
- java.lang.Comparable<T>
 - All Known Subinterfaces:
- Bandwidth
 - All Known Implementing Classes:
- Frequency
 
 public interface RichComparable<T> extends java.lang.Comparable<T>Extends useful methods for comparison toComparableinterface.
- 
- 
Method SummaryAll Methods Instance Methods Default Methods Modifier and Type Method Description default booleanisGreaterThan(T other)Compares if this object is greater than the specified object.default booleanisLessThan(T other)Compares if this object is less than the specified object.
 
- 
- 
- 
Method Detail- 
isLessThandefault boolean isLessThan(T other) Compares if this object is less than the specified object.- Parameters:
- other- the object to be compared
- Returns:
- true if this object is less than the specified object
 
 - 
isGreaterThandefault boolean isGreaterThan(T other) Compares if this object is greater than the specified object.- Parameters:
- other- the object to be compared
- Returns:
- true if this object is less thant the specified object
 
 
- 
 
-