com.google.common.collect.Iterators.class Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jelly Show documentation
Show all versions of jelly Show documentation
Java Functional Metaprogramming API
The newest version!
???? 2"
kx
jy jz j{
|}~
? +? +?
??
j?
??
j??? +?
??
?? ???
x
?
??
??
?
????
?
j?
??
????
j?
j??
&?
??
j???
*?
j? ??
/?
j?
|??
3??
5?
??
j?
?
j?
?
??
?? ?
|??
@?
j?
j???
???
D??
j??
|???
O??
Q?
j?
|?
|??
V??
X??
Z??
\??
^??hi?
c???
fx?
hx?? MergingIterator InnerClasses PeekingImpl EMPTY_LIST_ITERATOR 4Lcom/google/common/collect/UnmodifiableListIterator; Signature HLcom/google/common/collect/UnmodifiableListIterator; EMPTY_MODIFIABLE_ITERATOR Ljava/util/Iterator; (Ljava/util/Iterator; ()V Code LineNumberTable LocalVariableTable this %Lcom/google/common/collect/Iterators;
emptyIterator 2()Lcom/google/common/collect/UnmodifiableIterator;
Deprecated M()Lcom/google/common/collect/UnmodifiableIterator; RuntimeVisibleAnnotations Ljava/lang/Deprecated; emptyListIterator 6()Lcom/google/common/collect/UnmodifiableListIterator; Q()Lcom/google/common/collect/UnmodifiableListIterator; emptyModifiableIterator ()Ljava/util/Iterator; 1()Ljava/util/Iterator; unmodifiableIterator F(Ljava/util/Iterator;)Lcom/google/common/collect/UnmodifiableIterator; iterator LocalVariableTypeTable Ljava/util/Iterator;
StackMapTable f(Ljava/util/Iterator;)Lcom/google/common/collect/UnmodifiableIterator; b(Lcom/google/common/collect/UnmodifiableIterator;)Lcom/google/common/collect/UnmodifiableIterator; 0Lcom/google/common/collect/UnmodifiableIterator; 5Lcom/google/common/collect/UnmodifiableIterator; ?(Lcom/google/common/collect/UnmodifiableIterator;)Lcom/google/common/collect/UnmodifiableIterator; size (Ljava/util/Iterator;)I count I Ljava/util/Iterator<*>; (Ljava/util/Iterator<*>;)I contains )(Ljava/util/Iterator;Ljava/lang/Object;)Z element Ljava/lang/Object; ,(Ljava/util/Iterator<*>;Ljava/lang/Object;)Z "RuntimeVisibleParameterAnnotations Ljavax/annotation/Nullable; removeAll -(Ljava/util/Iterator;Ljava/util/Collection;)Z
removeFrom elementsToRemove Ljava/util/Collection; Ljava/util/Collection<*>; 3(Ljava/util/Iterator<*>;Ljava/util/Collection<*>;)Z removeIf 9(Ljava/util/Iterator;Lcom/google/common/base/Predicate;)Z predicate "Lcom/google/common/base/Predicate; modified Z (Lcom/google/common/base/Predicate<-TT;>; Z(Ljava/util/Iterator;Lcom/google/common/base/Predicate<-TT;>;)Z retainAll elementsToRetain
elementsEqual +(Ljava/util/Iterator;Ljava/util/Iterator;)Z o1 o2 iterator1 iterator2 1(Ljava/util/Iterator<*>;Ljava/util/Iterator<*>;)Z toString ((Ljava/util/Iterator;)Ljava/lang/String; +(Ljava/util/Iterator<*>;)Ljava/lang/String; getOnlyElement ((Ljava/util/Iterator;)Ljava/lang/Object; i first sb Ljava/lang/StringBuilder; TT;?? 4(Ljava/util/Iterator;)TT; :(Ljava/util/Iterator;Ljava/lang/Object;)Ljava/lang/Object; defaultValue Ljava/util/Iterator<+TT;>; 8(Ljava/util/Iterator<+TT;>;TT;)TT; toArray :(Ljava/util/Iterator;Ljava/lang/Class;)[Ljava/lang/Object; type Ljava/lang/Class; list Ljava/util/List; Ljava/lang/Class; Ljava/util/List; L(Ljava/util/Iterator<+TT;>;Ljava/lang/Class;)[TT; RuntimeInvisibleAnnotations /Lcom/google/common/annotations/GwtIncompatible; value Array.newInstance(Class, int) addAll -(Ljava/util/Collection;Ljava/util/Iterator;)Z addTo wasModified Ljava/util/Collection; N(Ljava/util/Collection;Ljava/util/Iterator<+TT;>;)Z frequency )(Ljava/util/Iterator;Ljava/lang/Object;)I ,(Ljava/util/Iterator<*>;Ljava/lang/Object;)I cycle *(Ljava/lang/Iterable;)Ljava/util/Iterator; iterable Ljava/lang/Iterable; Ljava/lang/Iterable; J(Ljava/lang/Iterable;)Ljava/util/Iterator; )([Ljava/lang/Object;)Ljava/util/Iterator; elements [Ljava/lang/Object; [TT; 5([TT;)Ljava/util/Iterator; concat >(Ljava/util/Iterator;Ljava/util/Iterator;)Ljava/util/Iterator; a b e(Ljava/util/Iterator<+TT;>;Ljava/util/Iterator<+TT;>;)Ljava/util/Iterator; R(Ljava/util/Iterator;Ljava/util/Iterator;Ljava/util/Iterator;)Ljava/util/Iterator; c (Ljava/util/Iterator<+TT;>;Ljava/util/Iterator<+TT;>;Ljava/util/Iterator<+TT;>;)Ljava/util/Iterator; f(Ljava/util/Iterator;Ljava/util/Iterator;Ljava/util/Iterator;Ljava/util/Iterator;)Ljava/util/Iterator; d ?(Ljava/util/Iterator<+TT;>;Ljava/util/Iterator<+TT;>;Ljava/util/Iterator<+TT;>;Ljava/util/Iterator<+TT;>;)Ljava/util/Iterator; +([Ljava/util/Iterator;)Ljava/util/Iterator; input arr$ [Ljava/util/Iterator; len$ i$ inputs [Ljava/util/Iterator<+TT;>; L([Ljava/util/Iterator<+TT;>;)Ljava/util/Iterator; *(Ljava/util/Iterator;)Ljava/util/Iterator; 1Ljava/util/Iterator<+Ljava/util/Iterator<+TT;>;>; b(Ljava/util/Iterator<+Ljava/util/Iterator<+TT;>;>;)Ljava/util/Iterator; partition G(Ljava/util/Iterator;I)Lcom/google/common/collect/UnmodifiableIterator; y(Ljava/util/Iterator;I)Lcom/google/common/collect/UnmodifiableIterator;>; paddedPartition
partitionImpl H(Ljava/util/Iterator;IZ)Lcom/google/common/collect/UnmodifiableIterator; pad z(Ljava/util/Iterator;IZ)Lcom/google/common/collect/UnmodifiableIterator;>; filter h(Ljava/util/Iterator;Lcom/google/common/base/Predicate;)Lcom/google/common/collect/UnmodifiableIterator;
unfiltered ?(Ljava/util/Iterator;Lcom/google/common/base/Predicate<-TT;>;)Lcom/google/common/collect/UnmodifiableIterator; #Ljavax/annotation/CheckReturnValue; W(Ljava/util/Iterator;Ljava/lang/Class;)Lcom/google/common/collect/UnmodifiableIterator; z(Ljava/util/Iterator<*>;Ljava/lang/Class;)Lcom/google/common/collect/UnmodifiableIterator; Class.isInstance any all find J(Ljava/util/Iterator;Lcom/google/common/base/Predicate;)Ljava/lang/Object; \(Ljava/util/Iterator;Lcom/google/common/base/Predicate<-TT;>;)TT; \(Ljava/util/Iterator;Lcom/google/common/base/Predicate;Ljava/lang/Object;)Ljava/lang/Object; `(Ljava/util/Iterator<+TT;>;Lcom/google/common/base/Predicate<-TT;>;TT;)TT; tryFind Y(Ljava/util/Iterator;Lcom/google/common/base/Predicate;)Lcom/google/common/base/Optional; filteredIterator~? (Ljava/util/Iterator;Lcom/google/common/base/Predicate<-TT;>;)Lcom/google/common/base/Optional; indexOf 9(Ljava/util/Iterator;Lcom/google/common/base/Predicate;)I current Z(Ljava/util/Iterator;Lcom/google/common/base/Predicate<-TT;>;)I transform K(Ljava/util/Iterator;Lcom/google/common/base/Function;)Ljava/util/Iterator; fromIterator function !Lcom/google/common/base/Function; Ljava/util/Iterator; +Lcom/google/common/base/Function<-TF;+TT;>; ?(Ljava/util/Iterator;Lcom/google/common/base/Function<-TF;+TT;>;)Ljava/util/Iterator; get )(Ljava/util/Iterator;I)Ljava/lang/Object; position skipped 5(Ljava/util/Iterator;I)TT; checkNonnegative (I)V ;(Ljava/util/Iterator;ILjava/lang/Object;)Ljava/lang/Object; 9(Ljava/util/Iterator<+TT;>;ITT;)TT; getNext getLast advance (Ljava/util/Iterator;I)I numberToAdvance (Ljava/util/Iterator<*>;I)I limit +(Ljava/util/Iterator;I)Ljava/util/Iterator; limitSize K(Ljava/util/Iterator;I)Ljava/util/Iterator; consumingIterator J(Ljava/util/Iterator;)Ljava/util/Iterator; pollNext result clear (Ljava/util/Iterator;)V (Ljava/util/Iterator<*>;)V forArray E([Ljava/lang/Object;)Lcom/google/common/collect/UnmodifiableIterator; array Q([TT;)Lcom/google/common/collect/UnmodifiableIterator; L([Ljava/lang/Object;III)Lcom/google/common/collect/UnmodifiableListIterator; offset length index end X([TT;III)Lcom/google/common/collect/UnmodifiableListIterator; singletonIterator D(Ljava/lang/Object;)Lcom/google/common/collect/UnmodifiableIterator; P(TT;)Lcom/google/common/collect/UnmodifiableIterator; forEnumeration I(Ljava/util/Enumeration;)Lcom/google/common/collect/UnmodifiableIterator; enumeration Ljava/util/Enumeration; Ljava/util/Enumeration; i(Ljava/util/Enumeration;)Lcom/google/common/collect/UnmodifiableIterator;
asEnumeration -(Ljava/util/Iterator;)Ljava/util/Enumeration; M(Ljava/util/Iterator;)Ljava/util/Enumeration; peekingIterator A(Ljava/util/Iterator;)Lcom/google/common/collect/PeekingIterator; peeking 1Lcom/google/common/collect/Iterators$PeekingImpl; 6Lcom/google/common/collect/Iterators$PeekingImpl; b(Ljava/util/Iterator<+TT;>;)Lcom/google/common/collect/PeekingIterator; X(Lcom/google/common/collect/PeekingIterator;)Lcom/google/common/collect/PeekingIterator; +Lcom/google/common/collect/PeekingIterator; 0Lcom/google/common/collect/PeekingIterator; x(Lcom/google/common/collect/PeekingIterator;)Lcom/google/common/collect/PeekingIterator; mergeSorted \(Ljava/lang/Iterable;Ljava/util/Comparator;)Lcom/google/common/collect/UnmodifiableIterator; iterators
comparator Ljava/util/Comparator; 1Ljava/lang/Iterable<+Ljava/util/Iterator<+TT;>;>; Ljava/util/Comparator<-TT;>; ?(Ljava/lang/Iterable<+Ljava/util/Iterator<+TT;>;>;Ljava/util/Comparator<-TT;>;)Lcom/google/common/collect/UnmodifiableIterator; $Lcom/google/common/annotations/Beta; cast .(Ljava/util/Iterator;)Ljava/util/ListIterator; N(Ljava/util/Iterator;)Ljava/util/ListIterator;
SourceFile Iterators.java -Lcom/google/common/annotations/GwtCompatible; emulated w x ? ? p q t u??? .com/google/common/collect/UnmodifiableIterator %com/google/common/collect/Iterators$3 wD??????? ??? ? ????? x???????? java/lang/StringBuilder????? ?? expected one element but was: <???? , , ... "java/lang/IllegalArgumentException w ? ? ?? ? ? %com/google/common/collect/Iterators$4 w ? ? 0com/google/common/collect/ConsumingQueueIterator java/util/Iterator w
? %com/google/common/collect/Iterators$5 %com/google/common/collect/Iterators$6 w
%com/google/common/collect/Iterators$7 w !5 ??? %com/google/common/collect/Iterators$8 w1278 #java/lang/IndexOutOfBoundsException
position (? :) must be less than the number of elements that remained ( ) ) must not be negative6 ? #numberToAdvance must be nonnegative limit is negative %com/google/common/collect/Iterators$9 w &com/google/common/collect/Iterators$10FJ &com/google/common/collect/Iterators$11 w &com/google/common/collect/Iterators$12 w &com/google/common/collect/Iterators$13 w &com/google/common/collect/Iterators$14 /com/google/common/collect/Iterators$PeekingImpl )com/google/common/collect/PeekingIterator 3com/google/common/collect/Iterators$MergingIterator w! java/util/ListIterator %com/google/common/collect/Iterators$1 %com/google/common/collect/Iterators$2 #com/google/common/collect/Iterators java/lang/Object com/google/common/base/Optional $com/google/common/base/Preconditions checkNotNull &(Ljava/lang/Object;)Ljava/lang/Object; hasNext ()Z next ()Ljava/lang/Object; !com/google/common/base/Predicates equalTo 6(Ljava/lang/Object;)Lcom/google/common/base/Predicate; in :(Ljava/util/Collection;)Lcom/google/common/base/Predicate; com/google/common/base/Predicate apply (Ljava/lang/Object;)Z remove not F(Lcom/google/common/base/Predicate;)Lcom/google/common/base/Predicate; com/google/common/base/Objects equal '(Ljava/lang/Object;Ljava/lang/Object;)Z &com/google/common/collect/Collections2 STANDARD_JOINER Lcom/google/common/base/Joiner; append (C)Ljava/lang/StringBuilder; com/google/common/base/Joiner appendTo H(Ljava/lang/StringBuilder;Ljava/util/Iterator;)Ljava/lang/StringBuilder; ()Ljava/lang/String; -(Ljava/lang/String;)Ljava/lang/StringBuilder; -(Ljava/lang/Object;)Ljava/lang/StringBuilder; (Ljava/lang/String;)V com/google/common/collect/Lists newArrayList +(Ljava/util/Iterator;)Ljava/util/ArrayList; #com/google/common/collect/Iterables :(Ljava/lang/Iterable;Ljava/lang/Class;)[Ljava/lang/Object; java/util/Collection add (Ljava/lang/Iterable;)V *([Ljava/lang/Object;)Ljava/util/ArrayList; ([Ljava/lang/Object;)V
checkArgument (Z)V (Ljava/util/Iterator;IZ)V 9(Ljava/util/Iterator;Lcom/google/common/base/Predicate;)V
instanceOf 5(Ljava/lang/Class;)Lcom/google/common/base/Predicate; of 5(Ljava/lang/Object;)Lcom/google/common/base/Optional; absent #()Lcom/google/common/base/Optional; 8(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object; 8(Ljava/util/Iterator;Lcom/google/common/base/Function;)V (I)Ljava/lang/StringBuilder; (ZLjava/lang/Object;)V (ILjava/util/Iterator;)V checkPositionIndexes (III)V checkPositionIndex (II)I (II[Ljava/lang/Object;I)V (Ljava/lang/Object;)V (Ljava/util/Enumeration;)V -(Ljava/lang/Iterable;Ljava/util/Comparator;)V 1 j k p q r s t u r v : w x y / *? ? z G { | } ~ y ? ? z v ? r ? ? ? ? ? y ? ? z ? r ? ? ? y ? ? z ? r ? ? ? y k *? W*? ? *? ?? Y*? ? z ? ? ? ? { ? u ? ? ? ? r ? ? ? y D *? ? ? z ? { ? ? ? ? ? ? r ? ? ? ? ? y } <*? ? *?
W????? z ? ? ? ? ? { ? u ? ? ? ? ? ? ? r ? ? ? y O *+? ? ? z ? { ? u ? ? ? ? ? r ? ? ? ? ? y Y *+?
? ? z ? { ? u ? ? ? ? ? ? ? r ? ? ? y ? ,+? W=*? ? +*?
? ???*? =???? z ? ? ? ? ? % ? * ? { , ? u , ? ? % ? ? ? , ? ? , ? ? ? ? " r ? ? ? y \ *+?
? ? ? z { ? u ? ? ? ? ? ? ? r ? ? ? y ? >*? ? )+? ? ?*?
M+?
N,-? ? ????+? ? ? ? z &