Package adams.flow.transformer
Class SpreadSheetSortColumns.ContainerComparator
- java.lang.Object
-
- adams.flow.transformer.SpreadSheetSortColumns.ContainerComparator
-
- All Implemented Interfaces:
Comparator<SpreadSheetSortColumns.SortContainer>
- Enclosing class:
- SpreadSheetSortColumns
public static class SpreadSheetSortColumns.ContainerComparator extends Object implements Comparator<SpreadSheetSortColumns.SortContainer>
Comparator wrapper for the containers, uses the provided comparator to compare the names.
-
-
Field Summary
Fields Modifier and Type Field Description protected Comparator
m_Comparator
the actual comparator to use.
-
Constructor Summary
Constructors Constructor Description ContainerComparator(Comparator comp)
Initializes the comparator wrapper.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compare(SpreadSheetSortColumns.SortContainer o1, SpreadSheetSortColumns.SortContainer o2)
Compares the two containers.-
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
-
m_Comparator
protected Comparator m_Comparator
the actual comparator to use.
-
-
Constructor Detail
-
ContainerComparator
public ContainerComparator(Comparator comp)
Initializes the comparator wrapper.- Parameters:
comp
- the comparator to use for comparing the names
-
-
Method Detail
-
compare
public int compare(SpreadSheetSortColumns.SortContainer o1, SpreadSheetSortColumns.SortContainer o2)
Compares the two containers.- Specified by:
compare
in interfaceComparator<SpreadSheetSortColumns.SortContainer>
- Parameters:
o1
- the first containero2
- the second container- Returns:
- the comparison
-
-