Package ddf.catalog.util.impl
Class SourceDescriptorComparator
java.lang.Object
ddf.catalog.util.impl.SourceDescriptorComparator
- All Implemented Interfaces:
Comparator<ddf.catalog.source.SourceDescriptor>
public class SourceDescriptorComparator
extends Object
implements Comparator<ddf.catalog.source.SourceDescriptor>
Comparator for the sourceId of 2
SourceDescriptor objects-
Constructor Summary
Constructors -
Method Summary
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
-
SourceDescriptorComparator
public SourceDescriptorComparator()
-
-
Method Details
-
compare
public int compare(ddf.catalog.source.SourceDescriptor one, ddf.catalog.source.SourceDescriptor two) Uses theString#compareTo method on the lower-cased sourceId fields to sort- Specified by:
comparein interfaceComparator<ddf.catalog.source.SourceDescriptor>
-