![JAR search and dependency download from the Maven repository](/logo.png)
com.google.common.collect.ImmutableSortedSet$Builder.class Maven / Gradle / Ivy
???? 4 ? 5com/google/common/collect/ImmutableCollection$Builder
4com/google/common/collect/ImmutableSortedSet$Builder (Ljava/util/Comparator;I)V
.com/google/common/collect/ImmutableSet$Builder (Z)V
$com/google/common/base/Preconditions checkNotNull &(Ljava/lang/Object;)Ljava/lang/Object; java/util/Comparator
comparator Ljava/util/Comparator; java/lang/Object elements [Ljava/lang/Object; ! " # n I
% & ' ( ) java/util/Arrays copyOf )([Ljava/lang/Object;I)[Ljava/lang/Object;
% + , - sort .([Ljava/lang/Object;IILjava/util/Comparator;)V / 0 1 compare '(Ljava/lang/Object;Ljava/lang/Object;)I 3 java/lang/AssertionError 5 java/lang/StringBuilder
4 7 8 ()V : Comparator
4 < = > append -(Ljava/lang/String;)Ljava/lang/StringBuilder;
4 @ = A -(Ljava/lang/Object;)Ljava/lang/StringBuilder; C % compare method violates its contract
4 E F G toString ()Ljava/lang/String;
2 I J (Ljava/lang/Object;)V
% L M N fill *([Ljava/lang/Object;IILjava/lang/Object;)V
P Q 8 copyIfNecessary
S T 8 sortAndDedup
V W X expandedCapacity (II)I
Z [ \ ] ^ &com/google/common/collect/ObjectArrays checkElementsNotNull (([Ljava/lang/Object;)[Ljava/lang/Object;
` a b add J(Ljava/lang/Object;)Lcom/google/common/collect/ImmutableSortedSet$Builder;
d e f addAll F(Ljava/lang/Iterable;)Lcom/google/common/collect/ImmutableSet$Builder;
h e i F(Ljava/util/Iterator;)Lcom/google/common/collect/ImmutableSet$Builder;
k l m n o ,com/google/common/collect/ImmutableSortedSet emptySet M(Ljava/util/Comparator;)Lcom/google/common/collect/RegularImmutableSortedSet; q r s forceCopy Z u 3com/google/common/collect/RegularImmutableSortedSet
w x y z { 'com/google/common/collect/ImmutableList asImmutableList ?([Ljava/lang/Object;I)Lcom/google/common/collect/ImmutableList;
t } ~ B(Lcom/google/common/collect/ImmutableList;Ljava/util/Comparator;)V
? ? ? build 0()Lcom/google/common/collect/ImmutableSortedSet;
? ? ? combine h(Lcom/google/common/collect/ImmutableSet$Builder;)Lcom/google/common/collect/ImmutableSortedSet$Builder;
? e ? L(Ljava/util/Iterator;)Lcom/google/common/collect/ImmutableSortedSet$Builder;
? e ? L(Ljava/lang/Iterable;)Lcom/google/common/collect/ImmutableSortedSet$Builder;
? a ? K([Ljava/lang/Object;)Lcom/google/common/collect/ImmutableSortedSet$Builder; Signature Ljava/util/Comparator<-TE;>; [TE; (Ljava/util/Comparator;)V Code LineNumberTable LocalVariableTable this 6Lcom/google/common/collect/ImmutableSortedSet$Builder; LocalVariableTypeTable ;Lcom/google/common/collect/ImmutableSortedSet$Builder; MethodParameters (Ljava/util/Comparator<-TE;>;)V expectedSize (Ljava/util/Comparator<-TE;>;I)V copy cmp i unique
StackMapTable newLength element Ljava/lang/Object; TE; @(TE;)Lcom/google/common/collect/ImmutableSortedSet$Builder; RuntimeInvisibleAnnotations 8Lcom/google/errorprone/annotations/CanIgnoreReturnValue; e A([TE;)Lcom/google/common/collect/ImmutableSortedSet$Builder; Ljava/lang/Iterable; Ljava/lang/Iterable<+TE;>; W(Ljava/lang/Iterable<+TE;>;)Lcom/google/common/collect/ImmutableSortedSet$Builder; Ljava/util/Iterator; Ljava/util/Iterator<+TE;>; W(Ljava/util/Iterator<+TE;>;)Lcom/google/common/collect/ImmutableSortedSet$Builder; builder 0Lcom/google/common/collect/ImmutableSet$Builder; other 5Lcom/google/common/collect/ImmutableSet$Builder; r(Lcom/google/common/collect/ImmutableSet$Builder;)Lcom/google/common/collect/ImmutableSortedSet$Builder; 5()Lcom/google/common/collect/ImmutableSortedSet; *()Lcom/google/common/collect/ImmutableSet; b(Lcom/google/common/collect/ImmutableSet$Builder;)Lcom/google/common/collect/ImmutableSet$Builder; E([Ljava/lang/Object;)Lcom/google/common/collect/ImmutableSet$Builder; D(Ljava/lang/Object;)Lcom/google/common/collect/ImmutableSet$Builder; 1()Lcom/google/common/collect/ImmutableCollection; M(Ljava/util/Iterator;)Lcom/google/common/collect/ImmutableCollection$Builder; M(Ljava/lang/Iterable;)Lcom/google/common/collect/ImmutableCollection$Builder; L([Ljava/lang/Object;)Lcom/google/common/collect/ImmutableCollection$Builder; K(Ljava/lang/Object;)Lcom/google/common/collect/ImmutableCollection$Builder; KLcom/google/common/collect/ImmutableSet$Builder;
SourceFile ImmutableSortedSet.java InnerClasses ? -com/google/common/collect/ImmutableCollection Builder ? &com/google/common/collect/ImmutableSet 1
? ? ? ? " # ? ? [ *+? ? ?
? ? ? ? ? ? ? ? ? ? ? ? ? ? *? *+? ? ? *? ? *? ? ? ? ? ? ? ? ? ? ? ? # ? ? ? ? ? ? ? ? ? 8 ? Q **? *? ?? $? ? ?
? ? ? ? ? ? ? ? T 8 ? 8 ?*? ? ?*? *? *? ? *<=*? ? ^*? *? d2*? 2? . >? *? ?*? 2S? *? &? 2Y? 4Y? 69? ;*? ? ?B? ;? D? H?????*? *? ? K*? ? ? : ? ? ? ? ? $? <? @? R? V? y? ? ?? ?? ? * <