com.google.common.collect.Ordering.class Maven / Gradle / Ivy
???? 4? )com/google/common/collect/NaturalOrdering INSTANCE +Lcom/google/common/collect/NaturalOrdering; "com/google/common/collect/Ordering
,com/google/common/collect/ComparatorOrdering
(Ljava/util/Comparator;)V
$com/google/common/base/Preconditions checkNotNull &(Ljava/lang/Object;)Ljava/lang/Object; *com/google/common/collect/ExplicitOrdering
(Ljava/util/List;)V
com/google/common/collect/Lists asList 7(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/util/List;
! " # explicit 6(Ljava/util/List;)Lcom/google/common/collect/Ordering; % & ' ( *com/google/common/collect/AllEqualOrdering ,Lcom/google/common/collect/AllEqualOrdering; * + , - /com/google/common/collect/UsingToStringOrdering 1Lcom/google/common/collect/UsingToStringOrdering; / 0 1 2 3 :com/google/common/collect/Ordering$ArbitraryOrderingHolder ARBITRARY_ORDERING $Lcom/google/common/collect/Ordering;
5 6 7
8 java/lang/Object ()V : )com/google/common/collect/ReverseOrdering
9 <
= '(Lcom/google/common/collect/Ordering;)V ? ,com/google/common/collect/NullsFirstOrdering
> < B +com/google/common/collect/NullsLastOrdering
A < E ,com/google/common/collect/ByFunctionOrdering
D G
H H(Lcom/google/common/base/Function;Lcom/google/common/collect/Ordering;)V
J K L M N com/google/common/collect/Maps keyFunction #()Lcom/google/common/base/Function;
P Q R
onResultOf G(Lcom/google/common/base/Function;)Lcom/google/common/collect/Ordering; T *com/google/common/collect/CompoundOrdering V java/util/Comparator
S X
Y /(Ljava/util/Comparator;Ljava/util/Comparator;)V
S [
\ (Ljava/lang/Iterable;)V ^ 1com/google/common/collect/LexicographicalOrdering
] a b c d e java/util/Iterator next ()Ljava/lang/Object; a g h i hasNext ()Z
k l m min 8(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object; o p q r s java/lang/Iterable iterator ()Ljava/util/Iterator;
u l v ((Ljava/util/Iterator;)Ljava/lang/Object;
x y z compare '(Ljava/lang/Object;Ljava/lang/Object;)I
| } m max
} v ? java/util/Collection ? ? ? ? size ()I ? ? ? ? toArray ()[Ljava/lang/Object;
? ? ? ? ? java/util/Arrays sort ,([Ljava/lang/Object;Ljava/util/Comparator;)V
? ? ? ? copyOf )([Ljava/lang/Object;I)[Ljava/lang/Object;
? ? ? %([Ljava/lang/Object;)Ljava/util/List;
? ? ? ? ? java/util/Collections unmodifiableList "(Ljava/util/List;)Ljava/util/List;
? ? ? leastOf '(Ljava/util/Iterator;I)Ljava/util/List; ? k
? ? ? ? ? .com/google/common/collect/CollectPreconditions checkNonnegative (ILjava/lang/String;)I
? ? ? ? emptyList ()Ljava/util/List; ? java/lang/Integer????
? ? ? newArrayList +(Ljava/util/Iterator;)Ljava/util/ArrayList;
? ? ? ? )(Ljava/util/List;Ljava/util/Comparator;)V
? ? ? java/util/ArrayList
? ? ? ? subList (II)Ljava/util/List; ? ? ? ? 8 java/util/List clear
? ? ? 8
trimToSize
? ? ? ? ? &com/google/common/collect/TopKSelector least A(ILjava/util/Comparator;)Lcom/google/common/collect/TopKSelector;
? ? ? ? offerAll (Ljava/util/Iterator;)V
? ? ? ? topK
? ? ? reverse &()Lcom/google/common/collect/Ordering;
? ? ? '(Ljava/lang/Iterable;I)Ljava/util/List;
? ? ? ? ? #com/google/common/collect/Iterables )(Ljava/lang/Iterable;)[Ljava/lang/Object;
? ? ? +(Ljava/lang/Iterable;)Ljava/util/ArrayList;
? ? ? ? ? 'com/google/common/collect/ImmutableList sortedCopyOf U(Ljava/util/Comparator;Ljava/lang/Iterable;)Lcom/google/common/collect/ImmutableList;
? ? ? ? binarySearch ;(Ljava/util/List;Ljava/lang/Object;Ljava/util/Comparator;)I LEFT_IS_GREATER I
ConstantValue RIGHT_IS_GREATER???? natural Code LineNumberTable Signature F()Lcom/google/common/collect/Ordering; RuntimeInvisibleAnnotations -Lcom/google/common/annotations/GwtCompatible; serializable from <(Ljava/util/Comparator;)Lcom/google/common/collect/Ordering; LocalVariableTable
comparator Ljava/util/Comparator; LocalVariableTypeTable Ljava/util/Comparator;
StackMapTable MethodParameters \(Ljava/util/Comparator;)Lcom/google/common/collect/Ordering; RuntimeVisibleTypeAnnotations 5Lorg/checkerframework/checker/nullness/qual/Nullable; J(Lcom/google/common/collect/Ordering;)Lcom/google/common/collect/Ordering; ordering )Lcom/google/common/collect/Ordering;
Deprecated j(Lcom/google/common/collect/Ordering;)Lcom/google/common/collect/Ordering; RuntimeVisibleAnnotations Ljava/lang/Deprecated;
valuesInOrder Ljava/util/List; Ljava/util/List; V(Ljava/util/List;)Lcom/google/common/collect/Ordering; K(Ljava/lang/Object;[Ljava/lang/Object;)Lcom/google/common/collect/Ordering;
leastValue Ljava/lang/Object; remainingValuesInOrder [Ljava/lang/Object; TT; [TT; H(TT;[TT;)Lcom/google/common/collect/Ordering; allEqual :()Lcom/google/common/collect/Ordering;
usingToString arbitrary 0Lcom/google/common/annotations/J2ktIncompatible; this 2()Lcom/google/common/collect/Ordering;
nullsFirst nullsLast function !Lcom/google/common/base/Function; *Lcom/google/common/base/Function; k(Lcom/google/common/base/Function;)Lcom/google/common/collect/Ordering; onKeys L()Lcom/google/common/collect/Ordering;>; compound secondaryComparator Ljava/util/Comparator<-TU;>; N(Ljava/util/Comparator<-TU;>;)Lcom/google/common/collect/Ordering; :(Ljava/lang/Iterable;)Lcom/google/common/collect/Ordering; comparators Ljava/lang/Iterable; 3Ljava/lang/Iterable<+Ljava/util/Comparator<-TT;>;>; t(Ljava/lang/Iterable<+Ljava/util/Comparator<-TT;>;>;)Lcom/google/common/collect/Ordering; lexicographical H()Lcom/google/common/collect/Ordering;>; left right (TT;TT;)I "RuntimeVisibleParameterAnnotations .Lcom/google/common/collect/ParametricNullness; Ljava/util/Iterator; minSoFar Ljava/util/Iterator; TE; %(Ljava/util/Iterator;)TE; ((Ljava/lang/Iterable;)Ljava/lang/Object; iterable Ljava/lang/Iterable; %(Ljava/lang/Iterable;)TE; a b (TE;TE;)TE; ](Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object; r c rest [TE; (TE;TE;TE;[TE;)TE; maxSoFar array
collection Ljava/util/Collection; Ljava/util/Collection; 8(Ljava/lang/Iterable;I)Ljava/util/List; list Ljava/util/ArrayList; selector (Lcom/google/common/collect/TopKSelector; Ljava/util/ArrayList; -Lcom/google/common/collect/TopKSelector; 8(Ljava/util/Iterator;I)Ljava/util/List;
greatestOf
sortedCopy &(Ljava/lang/Iterable;)Ljava/util/List; elements 7(Ljava/lang/Iterable;)Ljava/util/List; immutableSortedCopy ?(Ljava/lang/Iterable;)Lcom/google/common/collect/ImmutableList; P(Ljava/lang/Iterable;)Lcom/google/common/collect/ImmutableList; 4Lorg/checkerframework/checker/nullness/qual/NonNull; isOrdered (Ljava/lang/Iterable;)Z prev it Ljava/lang/Iterable<+TT;>; Ljava/util/Iterator<+TT;>; (Ljava/lang/Iterable<+TT;>;)Z isStrictlyOrdered %(Ljava/util/List;Ljava/lang/Object;)I
sortedList key Ljava/util/List<+TT;>; (Ljava/util/List<+TT;>;TT;)I CLjava/lang/Object;Ljava/util/Comparator;
SourceFile
Ordering.java ;Lcom/google/common/collect/ElementTypesAreNonnullByDefault; InnerClasses ArbitraryOrderingHolderw =com/google/common/collect/Ordering$IncomparableValueException IncomparableValueExceptionz 4com/google/common/collect/Ordering$ArbitraryOrdering ArbitraryOrdering} java/util/Map$Entry
java/util/Map Entry! 5 U ? ? ? ? ? ? ? ? # ? ? ? ? ? ? ? ? ? ? ? ?Z ? ? ? ? l *? ?
*? ? ? Y*? ? ? ? ? ? ? ? ? ? G ? ? ? ? ?Z ?
? ? D *? ? ? ? ? ? 3
?
? ? ?Z ?
" # ? E ? Y*? ? ? ? ? ? ? ? ?Z ? ? " ? Y *+? ? ? ? ? ? ? ? ? ?Z ? ? ? ? $? ? ? ? ? ?Z ?
? ? ? )? ? - ? ? ? ?Z ? ? ? ? .? ? B ? ?
8 ? A *? 4? ? ? ? 3
? ? ? E ? 9Y*? ;? ? ? ? 3
? ! ? ? ?Z ? " ? ? E ? >Y*? @? ? ? ? 3
? ! ? ? ?Z ?
# ? ? E ? AY*? C? ? ? ? 3
? ! ? ? ?Z ?
Q R ? Z
? DY+*? F? ? ? ?
3
$%
$&