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
TLcyGroupDescriptors 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
ConstructorsConstructorDescriptionTLcyGroupDescriptorComparator(TLcyGroupDescriptor[] aGroupDescriptorOrdering) Constructs a newTLcyGroupDescriptorComparator.TLcyGroupDescriptorComparator(String[] aGroupDescriptorIDOrdering) Constructs a newTLcyGroupDescriptorComparator. -
Method Summary
Modifier and TypeMethodDescriptionintcompare(TLcyGroupDescriptor aGroup1, TLcyGroupDescriptor aGroup2) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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 theTLcyGroupDescriptors, in their sorted order.- Throws:
IllegalArgumentException- WhenaGroupDescriptorIDOrderingcontains duplicates.
-
TLcyGroupDescriptorComparator
Constructs a newTLcyGroupDescriptorComparator.- Parameters:
aGroupDescriptorOrdering- An array containing theTLcyGroupDescriptors, in their sorted order.- Throws:
IllegalArgumentException- WhenaGroupDescriptorOrderingcontains duplicates.
-
-
Method Details
-
compare
- Specified by:
comparein interfaceComparator<TLcyGroupDescriptor>
-