![JAR search and dependency download from the Maven repository](/logo.png)
com.google.common.collect.Iterables.class Maven / Gradle / Ivy
???? 4?
`2
3456
789 : ;
<=
>?
<@ A
<B C
<D E
<F ?G ?HIJ ?K
<L
<M
<N
<O
PQ
_R
_S T U
VW X
<YZ #[\ %]
<^_
(`
Va
_b
cd
ce
cf
cg
ch
3ij
2kl
4km
6n
op
_q
<r
<s
<t
<u
<v
<wx
@yz B{
<|
<}
V~ B:
<
<? B??
K2
_?
<? ?
<??
3??
Sk??
Vk?
X`'
3?(?
]??? UnmodifiableIterable InnerClasses ()V Code LineNumberTable LocalVariableTable this %Lcom/google/common/collect/Iterables; unmodifiableIterable *(Ljava/lang/Iterable;)Ljava/lang/Iterable; result Ljava/lang/Iterable; iterable LocalVariableTypeTable Ljava/lang/Iterable; Ljava/lang/Iterable<+TT;>;
StackMapTable MethodParameters Signature K(Ljava/lang/Iterable<+TT;>;)Ljava/lang/Iterable; RuntimeVisibleTypeAnnotations 5Lorg/checkerframework/checker/nullness/qual/Nullable; E(Lcom/google/common/collect/ImmutableCollection;)Ljava/lang/Iterable; /Lcom/google/common/collect/ImmutableCollection; 4Lcom/google/common/collect/ImmutableCollection;
Deprecated e(Lcom/google/common/collect/ImmutableCollection;)Ljava/lang/Iterable; RuntimeVisibleAnnotations Ljava/lang/Deprecated; size (Ljava/lang/Iterable;)I Ljava/lang/Iterable<*>; (Ljava/lang/Iterable<*>;)I contains )(Ljava/lang/Iterable;Ljava/lang/Object;)Z
collection Ljava/util/Collection; element Ljava/lang/Object; Ljava/util/Collection<*>; )Ljava/lang/Iterable<+Ljava/lang/Object;>; >(Ljava/lang/Iterable<+Ljava/lang/Object;>;Ljava/lang/Object;)Z "RuntimeVisibleParameterAnnotations Ljavax/annotation/CheckForNull; removeAll -(Ljava/lang/Iterable;Ljava/util/Collection;)Z
removeFrom elementsToRemove 3(Ljava/lang/Iterable<*>;Ljava/util/Collection<*>;)Z RuntimeInvisibleAnnotations 8Lcom/google/errorprone/annotations/CanIgnoreReturnValue; retainAll elementsToRetain removeIf 9(Ljava/lang/Iterable;Lcom/google/common/base/Predicate;)Z predicate "Lcom/google/common/base/Predicate; (Lcom/google/common/base/Predicate<-TT;>; Z(Ljava/lang/Iterable;Lcom/google/common/base/Predicate<-TT;>;)Z removeFirstMatching J(Ljava/lang/Iterable;Lcom/google/common/base/Predicate;)Ljava/lang/Object; next iterator Ljava/util/Iterator; TT; Ljava/util/Iterator;? \(Ljava/lang/Iterable;Lcom/google/common/base/Predicate<-TT;>;)TT;
elementsEqual +(Ljava/lang/Iterable;Ljava/lang/Iterable;)Z collection1 collection2 iterable1 iterable2 1(Ljava/lang/Iterable<*>;Ljava/lang/Iterable<*>;)Z toString ((Ljava/lang/Iterable;)Ljava/lang/String; +(Ljava/lang/Iterable<*>;)Ljava/lang/String; getOnlyElement ((Ljava/lang/Iterable;)Ljava/lang/Object; 4(Ljava/lang/Iterable;)TT; .Lcom/google/common/collect/ParametricNullness; :(Ljava/lang/Iterable;Ljava/lang/Object;)Ljava/lang/Object; defaultValue 8(Ljava/lang/Iterable<+TT;>;TT;)TT; toArray :(Ljava/lang/Iterable;Ljava/lang/Class;)[Ljava/lang/Object; type Ljava/lang/Class; Ljava/lang/Class; L(Ljava/lang/Iterable<+TT;>;Ljava/lang/Class;)[TT; /Lcom/google/common/annotations/GwtIncompatible; 4Lorg/checkerframework/checker/nullness/qual/NonNull; <(Ljava/lang/Iterable;[Ljava/lang/Object;)[Ljava/lang/Object; array [Ljava/lang/Object; [TT; Ljava/util/Collection<+TT;>; :(Ljava/lang/Iterable<+TT;>;[TT;)[TT; )(Ljava/lang/Iterable;)[Ljava/lang/Object; ,(Ljava/lang/Iterable<*>;)[Ljava/lang/Object; castOrCopyToCollection ,(Ljava/lang/Iterable;)Ljava/util/Collection; Ljava/lang/Iterable; L(Ljava/lang/Iterable;)Ljava/util/Collection; addAll -(Ljava/util/Collection;Ljava/lang/Iterable;)Z c addTo
elementsToAdd Ljava/util/Collection; N(Ljava/util/Collection;Ljava/lang/Iterable<+TT;>;)Z frequency )(Ljava/lang/Iterable;Ljava/lang/Object;)I ,(Ljava/lang/Iterable<*>;Ljava/lang/Object;)I cycle J(Ljava/lang/Iterable;)Ljava/lang/Iterable; )([Ljava/lang/Object;)Ljava/lang/Iterable; elements 5([TT;)Ljava/lang/Iterable; Ljava/lang/SafeVarargs; concat >(Ljava/lang/Iterable;Ljava/lang/Iterable;)Ljava/lang/Iterable; a b e(Ljava/lang/Iterable<+TT;>;Ljava/lang/Iterable<+TT;>;)Ljava/lang/Iterable; R(Ljava/lang/Iterable;Ljava/lang/Iterable;Ljava/lang/Iterable;)Ljava/lang/Iterable; (Ljava/lang/Iterable<+TT;>;Ljava/lang/Iterable<+TT;>;Ljava/lang/Iterable<+TT;>;)Ljava/lang/Iterable; f(Ljava/lang/Iterable;Ljava/lang/Iterable;Ljava/lang/Iterable;Ljava/lang/Iterable;)Ljava/lang/Iterable; d ?(Ljava/lang/Iterable<+TT;>;Ljava/lang/Iterable<+TT;>;Ljava/lang/Iterable<+TT;>;Ljava/lang/Iterable<+TT;>;)Ljava/lang/Iterable; +([Ljava/lang/Iterable;)Ljava/lang/Iterable; inputs [Ljava/lang/Iterable; [Ljava/lang/Iterable<+TT;>; L([Ljava/lang/Iterable<+TT;>;)Ljava/lang/Iterable; 1Ljava/lang/Iterable<+Ljava/lang/Iterable<+TT;>;>; b(Ljava/lang/Iterable<+Ljava/lang/Iterable<+TT;>;>;)Ljava/lang/Iterable; partition +(Ljava/lang/Iterable;I)Ljava/lang/Iterable; I ](Ljava/lang/Iterable;I)Ljava/lang/Iterable;>; paddedPartition filter L(Ljava/lang/Iterable;Lcom/google/common/base/Predicate;)Ljava/lang/Iterable;
unfiltered retainIfTrue r(Ljava/lang/Iterable;Lcom/google/common/base/Predicate<-TT;>;)Ljava/lang/Iterable; ;(Ljava/lang/Iterable;Ljava/lang/Class;)Ljava/lang/Iterable; desiredType ^(Ljava/lang/Iterable<*>;Ljava/lang/Class;)Ljava/lang/Iterable; any all find \(Ljava/lang/Iterable;Lcom/google/common/base/Predicate;Ljava/lang/Object;)Ljava/lang/Object; `(Ljava/lang/Iterable<+TT;>;Lcom/google/common/base/Predicate<-TT;>;TT;)TT; tryFind Y(Ljava/lang/Iterable;Lcom/google/common/base/Predicate;)Lcom/google/common/base/Optional; (Ljava/lang/Iterable;Lcom/google/common/base/Predicate<-TT;>;)Lcom/google/common/base/Optional; indexOf 9(Ljava/lang/Iterable;Lcom/google/common/base/Predicate;)I Z(Ljava/lang/Iterable;Lcom/google/common/base/Predicate<-TT;>;)I transform K(Ljava/lang/Iterable;Lcom/google/common/base/Function;)Ljava/lang/Iterable; fromIterable function !Lcom/google/common/base/Function; Ljava/lang/Iterable; +Lcom/google/common/base/Function<-TF;+TT;>; ?(Ljava/lang/Iterable;Lcom/google/common/base/Function<-TF;+TT;>;)Ljava/lang/Iterable; get )(Ljava/lang/Iterable;I)Ljava/lang/Object; position 5(Ljava/lang/Iterable;I)TT; ;(Ljava/lang/Iterable;ILjava/lang/Object;)Ljava/lang/Object; list Ljava/util/List; Ljava/util/List<+TT;>; Ljava/util/Iterator<+TT;>; 9(Ljava/lang/Iterable<+TT;>;ITT;)TT; getFirst getLast Ljava/util/List; getLastInNonemptyList $(Ljava/util/List;)Ljava/lang/Object; 0(Ljava/util/List;)TT; skip numberToSkip K(Ljava/lang/Iterable;I)Ljava/lang/Iterable; limit limitSize consumingIterable isEmpty (Ljava/lang/Iterable;)Z (Ljava/lang/Iterable<*>;)Z mergeSorted @(Ljava/lang/Iterable;Ljava/util/Comparator;)Ljava/lang/Iterable; iterables
comparator Ljava/util/Comparator; Ljava/util/Comparator<-TT;>; ~(Ljava/lang/Iterable<+Ljava/lang/Iterable<+TT;>;>;Ljava/util/Comparator<-TT;>;)Ljava/lang/Iterable;
SourceFile Iterables.java ;Lcom/google/common/collect/ElementTypesAreNonnullByDefault; -Lcom/google/common/annotations/GwtCompatible; emulated c d??? 8com/google/common/collect/Iterables$UnmodifiableIterable -com/google/common/collect/ImmutableCollection c? java/lang/Iterable java/util/Collection ? ??? ???? ?? ?? ?? ?? ?? ?? ???? ?????? d ?? ?? ?? ????? ? ? ? ? ?? ????? ?? ?? "com/google/common/collect/Multiset??
java/util/Set ?? ?? %com/google/common/collect/Iterables$1 c??? ? k? ?? ?? ?? ?? ???? %com/google/common/collect/Iterables$2 c? %com/google/common/collect/Iterables$3 %com/google/common/collect/Iterables$4 c???? ? ? ?? ?? ?? ?? ??? %com/google/common/collect/Iterables$5 c? java/util/List??????????"? java/util/NoSuchElementException?? !number to skip cannot be negative?? %com/google/common/collect/Iterables$6 limit is negative %com/google/common/collect/Iterables$7 %com/google/common/collect/Iterables$8?? %com/google/common/collect/Iterables$9 c? #com/google/common/collect/Iterables java/lang/Object java/util/Iterator $com/google/common/base/Preconditions checkNotNull &(Ljava/lang/Object;)Ljava/lang/Object; >(Ljava/lang/Iterable;Lcom/google/common/collect/Iterables$1;)V ()I ()Ljava/util/Iterator; #com/google/common/collect/Iterators (Ljava/util/Iterator;)I &com/google/common/collect/Collections2 safeContains +(Ljava/util/Collection;Ljava/lang/Object;)Z )(Ljava/util/Iterator;Ljava/lang/Object;)Z (Ljava/util/Collection;)Z -(Ljava/util/Iterator;Ljava/util/Collection;)Z !(Ljava/util/function/Predicate;)Z 9(Ljava/util/Iterator;Lcom/google/common/base/Predicate;)Z hasNext ()Z ()Ljava/lang/Object; com/google/common/base/Predicate apply (Ljava/lang/Object;)Z remove +(Ljava/util/Iterator;Ljava/util/Iterator;)Z ((Ljava/util/Iterator;)Ljava/lang/String; ((Ljava/util/Iterator;)Ljava/lang/Object; :(Ljava/util/Iterator;Ljava/lang/Object;)Ljava/lang/Object; &com/google/common/collect/ObjectArrays newArray '(Ljava/lang/Class;I)[Ljava/lang/Object; (([Ljava/lang/Object;)[Ljava/lang/Object; ()[Ljava/lang/Object; com/google/common/collect/Lists newArrayList +(Ljava/util/Iterator;)Ljava/util/ArrayList; -(Ljava/util/Collection;Ljava/util/Iterator;)Z count (Ljava/lang/Object;)I )(Ljava/util/Iterator;Ljava/lang/Object;)I (Ljava/lang/Iterable;)V *([Ljava/lang/Object;)Ljava/util/ArrayList; (com/google/common/collect/FluentIterable T(Ljava/lang/Iterable;Ljava/lang/Iterable;)Lcom/google/common/collect/FluentIterable; h(Ljava/lang/Iterable;Ljava/lang/Iterable;Ljava/lang/Iterable;)Lcom/google/common/collect/FluentIterable; |(Ljava/lang/Iterable;Ljava/lang/Iterable;Ljava/lang/Iterable;Ljava/lang/Iterable;)Lcom/google/common/collect/FluentIterable; A([Ljava/lang/Iterable;)Lcom/google/common/collect/FluentIterable; @(Ljava/lang/Iterable;)Lcom/google/common/collect/FluentIterable;
checkArgument (Z)V (Ljava/lang/Iterable;I)V 9(Ljava/lang/Iterable;Lcom/google/common/base/Predicate;)V !com/google/common/base/Predicates
instanceOf 5(Ljava/lang/Class;)Lcom/google/common/base/Predicate; J(Ljava/util/Iterator;Lcom/google/common/base/Predicate;)Ljava/lang/Object; \(Ljava/util/Iterator;Lcom/google/common/base/Predicate;Ljava/lang/Object;)Ljava/lang/Object; Y(Ljava/util/Iterator;Lcom/google/common/base/Predicate;)Lcom/google/common/base/Optional; 9(Ljava/util/Iterator;Lcom/google/common/base/Predicate;)I 8(Ljava/lang/Iterable;Lcom/google/common/base/Function;)V (I)Ljava/lang/Object; )(Ljava/util/Iterator;I)Ljava/lang/Object; checkNonnegative (I)V cast &(Ljava/lang/Iterable;)Ljava/util/List; advance (Ljava/util/Iterator;I)I getNext (ZLjava/lang/Object;)V 8(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object; -(Ljava/lang/Iterable;Ljava/util/Comparator;)V 1 _ ` 0 c d e / *? ? f F g h i j k e ? !*? W*? ?
*? ? *L+?? Y*? ? f K L N O Q g l m ! n m o l p ! n q r s n t u v
w j x e D *? ? ? f \ g n y o n z s n { t | } ~ ? e p *? ? *? ? ? *? ?
? f ? ? ? ? g n m o n ? r H s n t ? ? ? e ? *? ? *? M,+? ?*? +? ? f ? ? ? ? g ? ? n m ? ? o ? ? n ? r s n ? t ? v
w ? ? ? ? e ? %*? ? *? +? ? ?
?
*? +? ? f ? ? ? $ ? g % ? m % ? ? o % ? ? % ? ? r I s ? ? t ? ? ? ? ? e ? %*? ? *? +? ? ? ?
*? +? ? f ? ? ? $ ? g % ? m % ? ? o % ? ? % ? ? r I s ? ? t ? ? ? ? ? e ~ *? ? *? +? ?*? +? ? f ? ? ? g ? m ? ? o ? p ? ? r s ? ? t ? ? ? v
w ? ? e ? 3+? W*? M,? ? ,? N+-? ? ,? -????? f &