Package ch.tocco.nice2.infobox.impl
Class InfoboxComparator
java.lang.Object
ch.tocco.nice2.infobox.impl.InfoboxComparator
- All Implemented Interfaces:
Comparator<Infobox>
Compare info boxes to create an ordering. It uses the position property which obeys the following convention:
- consists of
<number> ':' <number>
- the first number specifies the column, the second number specifies the position in that column
This class will not throw exceptions if the position string is invalid. Instead, the box is put to the end of the column (if recognized) or to the end of the last column.
-
Constructor Summary
-
Method Summary
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 Details
-
InfoboxComparator
public InfoboxComparator()
-
-
Method Details
-
compare
- Specified by:
compare
in interfaceComparator<Infobox>
-