public class ResultGranularTimestampComparator<T> extends Object implements Comparator<Result<T>>
Constructor and Description |
---|
ResultGranularTimestampComparator(Granularity granularity) |
Modifier and Type | Method and Description |
---|---|
int |
compare(Result<T> r1,
Result<T> r2) |
static <T> com.google.common.collect.Ordering<Result<T>> |
create(Granularity granularity,
boolean descending) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
comparing, comparing, comparingDouble, comparingInt, comparingLong, equals, naturalOrder, nullsFirst, nullsLast, reversed, reverseOrder, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
public ResultGranularTimestampComparator(Granularity granularity)
public int compare(Result<T> r1, Result<T> r2)
compare
in interface Comparator<Result<T>>
public static <T> com.google.common.collect.Ordering<Result<T>> create(Granularity granularity, boolean descending)
Copyright © 2011–2018 The Apache Software Foundation. All rights reserved.