public class ItemComparator extends java.lang.Object implements java.util.Comparator<AbstractItem>
AbstractItem
.Constructor and Description |
---|
ItemComparator(TabSwitcher tabSwitcher)
Creates a new comparator, which allows to compare two instances of the class
AbstractItem . |
Modifier and Type | Method and Description |
---|---|
int |
compare(AbstractItem o1,
AbstractItem o2) |
protected TabSwitcher |
getTabSwitcher()
Returns the tab switcher, the items, which are compared by the comparator, belong to.
|
public ItemComparator(@NonNull TabSwitcher tabSwitcher)
AbstractItem
.tabSwitcher
- The tab switcher, the tab items, which should be compared by the comparator, belong
to, as a instance of the class TabSwitcher
. The tab switcher may not be null@NonNull protected final TabSwitcher getTabSwitcher()
TabSwitcher
. The tab switcher may not be nullpublic int compare(AbstractItem o1, AbstractItem o2)
compare
in interface java.util.Comparator<AbstractItem>