com.ibm.etools.iseries.edit.utils
Class SortedListbox.SortComparator
java.lang.Object
com.ibm.etools.iseries.edit.utils.SortedListbox.SortComparator
- All Implemented Interfaces:
- Comparator
- Enclosing class:
- SortedListbox
protected class SortedListbox.SortComparator
- extends Object
- implements Comparator
Comparator for sorting the elements to build a sorted
list. Uses the String compareTo method
but ignores the case of the letters.
Method Summary |
int |
compare(Object arg0,
Object arg1)
arg0 < arg1 - returns negative int
arg0 = arg1 - returns 0
arg0 > arg1 - returns positive int |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SortedListbox.SortComparator
protected SortedListbox.SortComparator()
compare
public int compare(Object arg0,
Object arg1)
- arg0 < arg1 - returns negative int
arg0 = arg1 - returns 0
arg0 > arg1 - returns positive int
- Specified by:
compare
in interface Comparator
Copyright © 2011 IBM Corp. All Rights Reserved.
Note: This documentation is for part of an interim API that is still under development and expected to change significantly before reaching stability. It is being made available at this early stage to solicit feedback from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken (repeatedly) as the API evolves.