public class TemporalResultComparator extends Object implements Comparator<Result>
Result objects.| Constructor and Description |
|---|
TemporalResultComparator(org.opengis.filter.sort.SortOrder sortOrder)
Constructs the comparator with the specified sort order, either temporal ascending or temporal
descending.
|
TemporalResultComparator(org.opengis.filter.sort.SortOrder sortOrder,
String temporalAttribute)
Constructs the comparator with the specified sort order, either temporal ascending or temporal
descending and the Attribute Name to sort on.
|
| Modifier and Type | Method and Description |
|---|---|
int |
compare(Result contentA,
Result contentB)
Compares the effective date between the two results.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcomparing, comparing, comparingDouble, comparingInt, comparingLong, equals, naturalOrder, nullsFirst, nullsLast, reversed, reverseOrder, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLongpublic TemporalResultComparator(org.opengis.filter.sort.SortOrder sortOrder)
sortOrder - the temporal sort order, if null is passed in, then the default SortOrder
applies, which is SortOrder.DESCENDING.public TemporalResultComparator(org.opengis.filter.sort.SortOrder sortOrder,
String temporalAttribute)
sortOrder - the temporal sort order, if null is passed in, then the default SortOrder
applies, which is SortOrder.DESCENDING.temporalAttribute - the name of the attribute to sort on. Default is Metacard.EFFECTIVEpublic int compare(Result contentA, Result contentB)
compare in interface Comparator<Result>This work is licensed under a Creative Commons Attribution 4.0 International License.