Class InfoboxComparator

java.lang.Object
ch.tocco.nice2.infobox.impl.InfoboxComparator
All Implemented Interfaces:
Comparator<Infobox>

public class InfoboxComparator extends Object implements 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 Details

    • InfoboxComparator

      public InfoboxComparator()
  • Method Details