Class Comparators
java.lang.Object
org.apache.druid.java.util.common.guava.Comparators
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <T> com.google.common.collect.Ordering<T> static <T> com.google.common.collect.Ordering<T> alwaysFirst(T value) Creates an ordering which always gives priority to the specified value.static Comparator<org.joda.time.Interval> Deprecated.static Comparator<org.joda.time.Interval> static Comparator<org.joda.time.Interval> static <T extends Comparable<? super T>>
com.google.common.collect.Ordering<T>
-
Constructor Details
-
Comparators
public Comparators()
-
-
Method Details
-
alwaysEqual
public static <T> com.google.common.collect.Ordering<T> alwaysEqual() -
alwaysFirst
public static <T> com.google.common.collect.Ordering<T> alwaysFirst(T value) Creates an ordering which always gives priority to the specified value. Other values are considered equal to each other. -
naturalNullsFirst
public static <T extends Comparable<? super T>> com.google.common.collect.Ordering<T> naturalNullsFirst() -
intervals
Deprecated. -
intervalsByStartThenEnd
-
intervalsByEndThenStart
-