Class GroupedMetaDataComparator
- java.lang.Object
-
- org.pentaho.reporting.engine.classic.core.metadata.GroupedMetaDataComparator
-
- All Implemented Interfaces:
Comparator<MetaData>
public class GroupedMetaDataComparator extends Object implements Comparator<MetaData>
This Comparator implements the standard java.util.Comparator interface. The intended use is to group MetaData elements based on either: (1) The ordinal value in the groupsorting.properties file (see documentation in that file for how this is accomplished. Any group(s) not represented in that file will be displayed last if more than one group they will all be displayed last in alpha order. (2) If the groupsorting.properties doesn't exist or can't be loaded, the value of the *.grouping key (using the standard string compare). This effectively sorts the attribute and style elements into groups for display by a GUI. Fine grain ordering of the groups can be accomplished using the groupsorting.properties file. Documented by William Seyler- Author:
- Thomas Morgner
-
-
Field Summary
Fields Modifier and Type Field Description static GroupedMetaDataComparator
DEFAULT
static GroupedMetaDataComparator
ENGLISH
-
Constructor Summary
Constructors Constructor Description GroupedMetaDataComparator()
GroupedMetaDataComparator(Locale locale)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compare(MetaData metaData1, MetaData metaData2)
-
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
-
-
-
-
Field Detail
-
DEFAULT
public static final GroupedMetaDataComparator DEFAULT
-
ENGLISH
public static final GroupedMetaDataComparator ENGLISH
-
-
Constructor Detail
-
GroupedMetaDataComparator
public GroupedMetaDataComparator()
-
GroupedMetaDataComparator
public GroupedMetaDataComparator(Locale locale)
-
-
Method Detail
-
compare
public int compare(MetaData metaData1, MetaData metaData2)
- Specified by:
compare
in interfaceComparator<MetaData>
-
-