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 Details

    • TLcyGroupDescriptorComparator

      public TLcyGroupDescriptorComparator(String[] aGroupDescriptorIDOrdering)
      Constructs a new TLcyGroupDescriptorComparator.
      Parameters:
      aGroupDescriptorIDOrdering - An array containing the ID's of the TLcyGroupDescriptors, in their sorted order.
      Throws:
      IllegalArgumentException - When aGroupDescriptorIDOrdering contains duplicates.
    • TLcyGroupDescriptorComparator

      public TLcyGroupDescriptorComparator(TLcyGroupDescriptor[] aGroupDescriptorOrdering)
      Constructs a new TLcyGroupDescriptorComparator.
      Parameters:
      aGroupDescriptorOrdering - An array containing the TLcyGroupDescriptors, in their sorted order.
      Throws:
      IllegalArgumentException - When aGroupDescriptorOrdering contains duplicates.
  • Method Details