Class Item.IndexComparator
- java.lang.Object
-
- org.apache.wicket.markup.repeater.Item.IndexComparator
-
- All Implemented Interfaces:
Serializable
,Comparator<Item<?>>
public static class Item.IndexComparator extends Object implements Comparator<Item<?>>, Serializable
Comparator that compares Items by their index property- Author:
- Igor Vaynberg (ivaynberg)
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description IndexComparator()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compare(Item<?> lhs, Item<?> rhs)
static Comparator<Item<?>>
getInstance()
-
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
-
-
-
-
Constructor Detail
-
IndexComparator
public IndexComparator()
-
-
Method Detail
-
getInstance
public static Comparator<Item<?>> getInstance()
- Returns:
- static instance of the comparator
-
compare
public int compare(Item<?> lhs, Item<?> rhs)
- Specified by:
compare
in interfaceComparator<Item<?>>
- See Also:
Comparator.compare(java.lang.Object, java.lang.Object)
-
-