Package com.luciad.lucy.gui
Class TLcyGroupDescriptorComparator
java.lang.Object
com.luciad.lucy.gui.TLcyGroupDescriptorComparator
- All Implemented Interfaces:
Comparator<TLcyGroupDescriptor>
public class TLcyGroupDescriptorComparator
extends Object
implements Comparator<TLcyGroupDescriptor>
Comparator for
TLcyGroupDescriptor
s that takes an ordered list of groups as its
constructor argument to define the sort order. Groups that are not provided in the list, are
assumed to be at the end.- See Also:
-
Constructor Summary
ConstructorDescriptionTLcyGroupDescriptorComparator
(TLcyGroupDescriptor[] aGroupDescriptorOrdering) Constructs a newTLcyGroupDescriptorComparator
.TLcyGroupDescriptorComparator
(String[] aGroupDescriptorIDOrdering) Constructs a newTLcyGroupDescriptorComparator
. -
Method Summary
Modifier and TypeMethodDescriptionint
compare
(TLcyGroupDescriptor aGroup1, TLcyGroupDescriptor aGroup2) 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
-
TLcyGroupDescriptorComparator
Constructs a newTLcyGroupDescriptorComparator
.- Parameters:
aGroupDescriptorIDOrdering
- An array containing the ID's of theTLcyGroupDescriptor
s, in their sorted order.- Throws:
IllegalArgumentException
- WhenaGroupDescriptorIDOrdering
contains duplicates.
-
TLcyGroupDescriptorComparator
Constructs a newTLcyGroupDescriptorComparator
.- Parameters:
aGroupDescriptorOrdering
- An array containing theTLcyGroupDescriptor
s, in their sorted order.- Throws:
IllegalArgumentException
- WhenaGroupDescriptorOrdering
contains duplicates.
-
-
Method Details
-
compare
- Specified by:
compare
in interfaceComparator<TLcyGroupDescriptor>
-