Package org.onosproject.ui.table
Interface CellComparator
- 
- All Known Implementing Classes:
- AbstractCellComparator,- DefaultCellComparator
 
 public interface CellComparatorDefines a comparator for cell values.
- 
- 
Method SummaryAll Methods Instance Methods Abstract Methods Modifier and Type Method Description intcompare(java.lang.Object o1, java.lang.Object o2)Compares its two arguments for order.
 
- 
- 
- 
Method Detail- 
compareint compare(java.lang.Object o1, java.lang.Object o2)Compares its two arguments for order. Returns a negative integer, zero, or a positive integer as the first argument is less than, equal to, or greater than the second.Note that nulls are permitted, and should be sorted to the beginning of an ascending sort; i.e. null is considered to be "smaller" than non-null values. - Parameters:
- o1- the first object to be compared
- o2- the second object to be compared
- Returns:
- an integer representing relative ordering
- Throws:
- java.lang.ClassCastException- if the arguments' types prevent them from being compared by this comparator
- See Also:
- Comparator.compare(Object, Object)
 
 
- 
 
-