Class NullComparator
- java.lang.Object
-
- org.eclipse.nebula.widgets.nattable.config.NullComparator
-
- All Implemented Interfaces:
Serializable
,Comparator<Object>
public class NullComparator extends Object implements Comparator<Object>, Serializable
GlazedLists require that the comparator be set to 'null' if a column is not sortable. If a null value is set in theIConfigRegistry
it will attempt to find other matching values. This comparator can be set in theConfigRegistry
to indicate that the column can not be sorted.See SortableGridExample
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description NullComparator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compare(Object o1, Object o2)
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.util.Comparator
equals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
-
-
-
Method Detail
-
compare
public int compare(Object o1, Object o2)
- Specified by:
compare
in interfaceComparator<Object>
-
-