public interface IComparator
IComparator
enables an IListDatasource
to sort its
content. To enable sorting, implement the compare(Object, Object)
method.
Modifier and Type | Method and Description |
---|---|
int |
compare(java.lang.Object o1,
java.lang.Object o2)
Compares two objects and returns either -1, 0 or 1 to tell the caller if
the first argument object is less than, equal to, or greater than the
second.
|
int compare(java.lang.Object o1, java.lang.Object o2)
o1
- the first object for comparingo2
- the second object for comparing