![JAR search and dependency download from the Maven repository](/logo.png)
com.google.common.collect.Multisets.class Maven / Gradle / Ivy
???? 4?
java/lang/Object ()V
+com/google/common/collect/CollectCollectors
toMultiset z(Ljava/util/function/Function;Ljava/util/function/ToIntFunction;Ljava/util/function/Supplier;)Ljava/util/stream/Collector; 8com/google/common/collect/Multisets$UnmodifiableMultiset +com/google/common/collect/ImmutableMultiset
$com/google/common/base/Preconditions checkNotNull &(Ljava/lang/Object;)Ljava/lang/Object; "com/google/common/collect/Multiset
'(Lcom/google/common/collect/Multiset;)V 4com/google/common/collect/UnmodifiableSortedMultiset (com/google/common/collect/SortedMultiset
! " -(Lcom/google/common/collect/SortedMultiset;)V $ 2com/google/common/collect/Multisets$ImmutableEntry
# & ' (Ljava/lang/Object;I)V ) 4com/google/common/collect/Multisets$FilteredMultiset ( + , - predicate "Lcom/google/common/base/Predicate;
/ 0 1 2 3 !com/google/common/base/Predicates and h(Lcom/google/common/base/Predicate;Lcom/google/common/base/Predicate;)Lcom/google/common/base/Predicate; ( 5 6 7
unfiltered $Lcom/google/common/collect/Multiset;
( 9 : I(Lcom/google/common/collect/Multiset;Lcom/google/common/base/Predicate;)V < = >
elementSet ()Ljava/util/Set; @ A B C D
java/util/Set size ()I F %com/google/common/collect/Multisets$1
E H I K(Lcom/google/common/collect/Multiset;Lcom/google/common/collect/Multiset;)V K %com/google/common/collect/Multisets$2
J H N %com/google/common/collect/Multisets$3
M H Q %com/google/common/collect/Multisets$4
P H T U > entrySet @ W X Y iterator ()Ljava/util/Iterator; [ \ ] ^ _ java/util/Iterator hasNext ()Z [ a b c next ()Ljava/lang/Object; e (com/google/common/collect/Multiset$Entry d g h c
getElement j k l count (Ljava/lang/Object;)I d n o D getCount
q r s t u #com/google/common/collect/Multisets retainOccurrencesImpl K(Lcom/google/common/collect/Multiset;Lcom/google/common/collect/Multiset;)Z [ w x remove z { | setCount (Ljava/lang/Object;I)I
q ~ u removeOccurrences ? W ? java/lang/Iterable ? x ? (Ljava/lang/Object;)Z ? x | A
q ? ? ? cast :(Ljava/lang/Iterable;)Lcom/google/common/collect/Multiset;
q ? ? u
addAllImpl ? ? ? ? _ java/util/Collection isEmpty ? W
? ? ? ? ? #com/google/common/collect/Iterators addAll -(Ljava/util/Collection;Ljava/util/Iterator;)Z ?
? ? ? ? java/util/Objects requireNonNull ? ? ? accept I(Lcom/google/common/collect/Multiset;)Ljava/util/function/ObjIntConsumer; ? ? ? forEachEntry &(Ljava/util/function/ObjIntConsumer;)V @ ? ? ? removeAll (Ljava/util/Collection;)Z @ ? ? ? retainAll k
? ? ? ? ? .com/google/common/collect/CollectPreconditions checkNonnegative (ILjava/lang/String;)I ? ? | add ? oldCount ? newCount ? %com/google/common/collect/Multisets$5
? ? ? (Ljava/util/Iterator;)V ? 8com/google/common/collect/Multisets$MultisetIteratorImpl
? ? ? ;(Lcom/google/common/collect/Multiset;Ljava/util/Iterator;)V @ ? ? ? spliterator ()Ljava/util/Spliterator; ? ? ? apply ()Ljava/util/function/Function; ? java/util/Spliterator ? ? ? D characteristics
? ? ? ? ? -com/google/common/collect/CollectSpliterators flatMap O(Ljava/util/Spliterator;Ljava/util/function/Function;IJ)Ljava/util/Spliterator;
? ? ? ? ? !com/google/common/primitives/Ints
saturatedCast (J)I @ ? ? ? toArray (([Ljava/lang/Object;)[Ljava/lang/Object; ? +[Lcom/google/common/collect/Multiset$Entry; ? ? ? ? ? 3com/google/common/collect/Multisets$DecreasingCount INSTANCE Ljava/util/Comparator;
? ? ? ? ? java/util/Arrays sort ,([Ljava/lang/Object;Ljava/util/Comparator;)V
? ? ? ? asList %([Ljava/lang/Object;)Ljava/util/List;
? ? ? copyFromEntries E(Ljava/util/Collection;)Lcom/google/common/collect/ImmutableMultiset;
? ? ? java/util/Collections nCopies %(ILjava/lang/Object;)Ljava/util/List; ? java/util/List Code LineNumberTable LocalVariableTable this %Lcom/google/common/collect/Multisets; elementFunction Ljava/util/function/Function;
countFunction "Ljava/util/function/ToIntFunction; multisetSupplier Ljava/util/function/Supplier; LocalVariableTypeTable &Ljava/util/function/Function<-TT;TE;>; (Ljava/util/function/ToIntFunction<-TT;>; "Ljava/util/function/Supplier; MethodParameters Signature ?;>(Ljava/util/function/Function<-TT;TE;>;Ljava/util/function/ToIntFunction<-TT;>;Ljava/util/function/Supplier;)Ljava/util/stream/Collector; RuntimeVisibleTypeAnnotations 5Lorg/checkerframework/checker/nullness/qual/Nullable; unmodifiableMultiset J(Lcom/google/common/collect/Multiset;)Lcom/google/common/collect/Multiset; result multiset )Lcom/google/common/collect/Multiset; *Lcom/google/common/collect/Multiset<+TE;>;
StackMapTable k(Lcom/google/common/collect/Multiset<+TE;>;)Lcom/google/common/collect/Multiset; S(Lcom/google/common/collect/ImmutableMultiset;)Lcom/google/common/collect/Multiset; -Lcom/google/common/collect/ImmutableMultiset; 2Lcom/google/common/collect/ImmutableMultiset;
Deprecated s(Lcom/google/common/collect/ImmutableMultiset;)Lcom/google/common/collect/Multiset; RuntimeVisibleAnnotations Ljava/lang/Deprecated; unmodifiableSortedMultiset V(Lcom/google/common/collect/SortedMultiset;)Lcom/google/common/collect/SortedMultiset; sortedMultiset *Lcom/google/common/collect/SortedMultiset; /Lcom/google/common/collect/SortedMultiset; v(Lcom/google/common/collect/SortedMultiset;)Lcom/google/common/collect/SortedMultiset; immutableEntry ?(Ljava/lang/Object;I)Lcom/google/common/collect/Multiset$Entry; e Ljava/lang/Object; n I TE; K(TE;I)Lcom/google/common/collect/Multiset$Entry; "RuntimeVisibleParameterAnnotations .Lcom/google/common/collect/ParametricNullness; filter l(Lcom/google/common/collect/Multiset;Lcom/google/common/base/Predicate;)Lcom/google/common/collect/Multiset; filtered 6Lcom/google/common/collect/Multisets$FilteredMultiset; combinedPredicate ;Lcom/google/common/collect/Multisets$FilteredMultiset; 'Lcom/google/common/base/Predicate; (Lcom/google/common/base/Predicate<-TE;>; ?(Lcom/google/common/collect/Multiset;Lcom/google/common/base/Predicate<-TE;>;)Lcom/google/common/collect/Multiset; inferDistinctElements (Ljava/lang/Iterable;)I elements Ljava/lang/Iterable; Ljava/lang/Iterable<*>; (Ljava/lang/Iterable<*>;)I union n(Lcom/google/common/collect/Multiset;Lcom/google/common/collect/Multiset;)Lcom/google/common/collect/Multiset; multiset1 multiset2 ?(Lcom/google/common/collect/Multiset<+TE;>;Lcom/google/common/collect/Multiset<+TE;>;)Lcom/google/common/collect/Multiset; intersection 'Lcom/google/common/collect/Multiset<*>; ?(Lcom/google/common/collect/Multiset;Lcom/google/common/collect/Multiset<*>;)Lcom/google/common/collect/Multiset; sum
difference containsOccurrences
superCount entry *Lcom/google/common/collect/Multiset$Entry;
superMultiset subMultiset -Lcom/google/common/collect/Multiset$Entry<*>; Q(Lcom/google/common/collect/Multiset<*>;Lcom/google/common/collect/Multiset<*>;)Z RuntimeInvisibleAnnotations 8Lcom/google/errorprone/annotations/CanIgnoreReturnValue; retainOccurrences multisetToModify multisetToRetain retainCount occurrencesToRetain
entryIterator Ljava/util/Iterator; changed Z /Lcom/google/common/collect/Multiset$Entry; ELjava/util/Iterator;>; i(Lcom/google/common/collect/Multiset;Lcom/google/common/collect/Multiset<*>;)Z ;(Lcom/google/common/collect/Multiset;Ljava/lang/Iterable;)Z o occurrencesToRemove A(Lcom/google/common/collect/Multiset<*>;Ljava/lang/Iterable<*>;)Z removeCount DLjava/util/Iterator<+Lcom/google/common/collect/Multiset$Entry<*>;>;
equalsImpl 9(Lcom/google/common/collect/Multiset;Ljava/lang/Object;)Z that object <(Lcom/google/common/collect/Multiset<*>;Ljava/lang/Object;)Z Ljavax/annotation/CheckForNull; =(Lcom/google/common/collect/Multiset;Ljava/util/Collection;)Z self Ljava/util/Collection; Ljava/util/Collection<+TE;>; ^(Lcom/google/common/collect/Multiset;Ljava/util/Collection<+TE;>;)Z l(Lcom/google/common/collect/Multiset;Lcom/google/common/collect/Multiset<+TE;>;)Z
removeAllImpl elementsToRemove
collection Ljava/util/Collection<*>; C(Lcom/google/common/collect/Multiset<*>;Ljava/util/Collection<*>;)Z
retainAllImpl elementsToRetain setCountImpl :(Lcom/google/common/collect/Multiset;Ljava/lang/Object;I)I element delta F(Lcom/google/common/collect/Multiset;TE;I)I ;(Lcom/google/common/collect/Multiset;Ljava/lang/Object;II)Z G(Lcom/google/common/collect/Multiset;TE;II)Z elementIterator *(Ljava/util/Iterator;)Ljava/util/Iterator; v(Ljava/util/Iterator;>;)Ljava/util/Iterator; iteratorImpl :(Lcom/google/common/collect/Multiset;)Ljava/util/Iterator; Z(Lcom/google/common/collect/Multiset;)Ljava/util/Iterator; spliteratorImpl =(Lcom/google/common/collect/Multiset;)Ljava/util/Spliterator; entrySpliterator Ljava/util/Spliterator; HLjava/util/Spliterator;>; ](Lcom/google/common/collect/Multiset;)Ljava/util/Spliterator; linearTimeSizeImpl '(Lcom/google/common/collect/Multiset;)I J *(Lcom/google/common/collect/Multiset<*>;)I iterable Ljava/lang/Iterable; Z(Ljava/lang/Iterable;)Lcom/google/common/collect/Multiset; copyHighestCountFirst S(Lcom/google/common/collect/Multiset;)Lcom/google/common/collect/ImmutableMultiset; entries 0[Lcom/google/common/collect/Multiset$Entry; s(Lcom/google/common/collect/Multiset;)Lcom/google/common/collect/ImmutableMultiset; lambda$spliteratorImpl$0 C(Lcom/google/common/collect/Multiset$Entry;)Ljava/util/Spliterator;
SourceFile Multisets.java ;Lcom/google/common/collect/ElementTypesAreNonnullByDefault; -Lcom/google/common/annotations/GwtCompatible; BootstrapMethods ' ? ?
q?????
????? "java/lang/invoke/LambdaMetafactory metafactory ?(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite; InnerClasses UnmodifiableMultiset ImmutableEntry FilteredMultiset Entry MultisetIteratorImpl DecreasingCount? 0com/google/common/collect/Multisets$ViewMultiset ViewMultiset? ,com/google/common/collect/Multisets$EntrySet EntrySet? .com/google/common/collect/Multisets$ElementSet
ElementSet? 1com/google/common/collect/Multisets$AbstractEntry
AbstractEntry? %java/lang/invoke/MethodHandles$Lookup? java/lang/invoke/MethodHandles Lookup 1 q / *? ? D k *+,? ? \
? !*?
?
*? ? *L+??
Y*? ? ? ? k m n p 7 ! 7 !
! D *? ? ? { " # $ %&