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 plantuml Show documentation
Show all versions of plantuml Show documentation
PlantUML is a component that allows to quickly write :
* sequence diagram,
* use case diagram,
* class diagram,
* activity diagram,
* component diagram,
* state diagram
* object diagram
???? 4
java/lang/Object ()V
#com/google/common/collect/Iterators emptyListIterator 6()Lcom/google/common/collect/UnmodifiableListIterator; ,com/google/common/collect/Iterators$ArrayItr EMPTY 4Lcom/google/common/collect/UnmodifiableListIterator; ;com/google/common/collect/Iterators$EmptyModifiableIterator INSTANCE =Lcom/google/common/collect/Iterators$EmptyModifiableIterator;
$com/google/common/base/Preconditions checkNotNull &(Ljava/lang/Object;)Ljava/lang/Object; .com/google/common/collect/UnmodifiableIterator " %com/google/common/collect/Iterators$1
! $ % (Ljava/util/Iterator;)V ' ( ) * + java/util/Iterator hasNext ()Z ' - . / next ()Ljava/lang/Object;
1 2 3 4 5 !com/google/common/primitives/Ints
saturatedCast (J)I
7 8 9 equals (Ljava/lang/Object;)Z ; < = > 9 java/util/Collection contains ' @ A remove C D E F 9 com/google/common/base/Predicate apply
H I J K L com/google/common/base/Objects equal '(Ljava/lang/Object;Ljava/lang/Object;)Z N java/lang/StringBuilder
M
M Q R S append (C)Ljava/lang/StringBuilder; U ,
M W R X -(Ljava/lang/String;)Ljava/lang/StringBuilder;
M Z R [ -(Ljava/lang/Object;)Ljava/lang/StringBuilder;
M ] ^ _ toString ()Ljava/lang/String; a expected one element but was: < c , ... e "java/lang/IllegalArgumentException
d g h (Ljava/lang/String;)V
j k l getOnlyElement ((Ljava/util/Iterator;)Ljava/lang/Object;
n o p q r com/google/common/collect/Lists newArrayList +(Ljava/util/Iterator;)Ljava/util/ArrayList;
t u v w x #com/google/common/collect/Iterables toArray :(Ljava/lang/Iterable;Ljava/lang/Class;)[Ljava/lang/Object; ; z { 9 add
} > ~ )(Ljava/util/Iterator;Ljava/lang/Object;)Z ? %com/google/common/collect/Iterators$2
? ? (Ljava/lang/Iterable;)V
n ? q ? *([Ljava/lang/Object;)Ljava/util/ArrayList;
? ? ? cycle *(Ljava/lang/Iterable;)Ljava/util/Iterator; ? %com/google/common/collect/Iterators$3
? ? ? ([Ljava/util/Iterator;)V
? ? ? consumingForArray +([Ljava/util/Iterator;)Ljava/util/Iterator;
? ? ? concat *(Ljava/util/Iterator;)Ljava/util/Iterator;
? ? ? ? ? java/util/Arrays copyOf )([Ljava/lang/Object;I)[Ljava/lang/Object; ? [Ljava/util/Iterator;
? ? ? concatNoDefensiveCopy ? 8com/google/common/collect/Iterators$ConcatenatedIterator
? $
? ? ?
partitionImpl H(Ljava/util/Iterator;IZ)Lcom/google/common/collect/UnmodifiableIterator;
? ? ?
checkArgument (Z)V ? %com/google/common/collect/Iterators$4
? ? ? (Ljava/util/Iterator;IZ)V ? %com/google/common/collect/Iterators$5
? ? ? 9(Ljava/util/Iterator;Lcom/google/common/base/Predicate;)V
? ? ? ? ? !com/google/common/base/Predicates
instanceOf 5(Ljava/lang/Class;)Lcom/google/common/base/Predicate;
? ? ? filter h(Ljava/util/Iterator;Lcom/google/common/base/Predicate;)Lcom/google/common/collect/UnmodifiableIterator;
? ? ? indexOf 9(Ljava/util/Iterator;Lcom/google/common/base/Predicate;)I ? java/util/NoSuchElementException
?
? ? ? ? ? com/google/common/base/Optional of 5(Ljava/lang/Object;)Lcom/google/common/base/Optional;
? ? ? ? absent #()Lcom/google/common/base/Optional; ? predicate
? ? 8(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object; ? %com/google/common/collect/Iterators$6
? ? ? 8(Ljava/util/Iterator;Lcom/google/common/base/Function;)V
? ? ? checkNonnegative (I)V
? ? ? advance (Ljava/util/Iterator;I)I ? #java/lang/IndexOutOfBoundsException ?
position (
M ? R ? (I)Ljava/lang/StringBuilder; ? :) must be less than the number of elements that remained ( ? )
? g
? ? ? getNext :(Ljava/util/Iterator;Ljava/lang/Object;)Ljava/lang/Object; ? ) must not be negative
? ? l getLast ? #numberToAdvance must be nonnegative
? ? ? (ZLjava/lang/Object;)V limit is negative %com/google/common/collect/Iterators$7
(ILjava/util/Iterator;)V %com/google/common/collect/Iterators$8
$
forArrayWithPosition J([Ljava/lang/Object;I)Lcom/google/common/collect/UnmodifiableListIterator;
checkPositionIndex (II)I
([Ljava/lang/Object;I)V 5com/google/common/collect/Iterators$SingletonIterator
(Ljava/lang/Object;)V %com/google/common/collect/Iterators$9
(Ljava/util/Enumeration;)V &com/google/common/collect/Iterators$10
$" /com/google/common/collect/Iterators$PeekingImpl
! $% )com/google/common/collect/PeekingIterator' iterators)
comparator+ 3com/google/common/collect/Iterators$MergingIterator
*- . -(Ljava/lang/Iterable;Ljava/util/Comparator;)V Code LineNumberTable LocalVariableTable this %Lcom/google/common/collect/Iterators;
emptyIterator 2()Lcom/google/common/collect/UnmodifiableIterator; Signature M()Lcom/google/common/collect/UnmodifiableIterator; RuntimeVisibleTypeAnnotations 5Lorg/checkerframework/checker/nullness/qual/Nullable; Q()Lcom/google/common/collect/UnmodifiableListIterator; emptyModifiableIterator ()Ljava/util/Iterator; 1()Ljava/util/Iterator; unmodifiableIterator F(Ljava/util/Iterator;)Lcom/google/common/collect/UnmodifiableIterator; result 0Lcom/google/common/collect/UnmodifiableIterator; iterator Ljava/util/Iterator; LocalVariableTypeTable 5Lcom/google/common/collect/UnmodifiableIterator; Ljava/util/Iterator<+TT;>;
StackMapTable MethodParameters g(Ljava/util/Iterator<+TT;>;)Lcom/google/common/collect/UnmodifiableIterator; b(Lcom/google/common/collect/UnmodifiableIterator;)Lcom/google/common/collect/UnmodifiableIterator;
Deprecated ?(Lcom/google/common/collect/UnmodifiableIterator;)Lcom/google/common/collect/UnmodifiableIterator; RuntimeVisibleAnnotations Ljava/lang/Deprecated; size (Ljava/util/Iterator;)I count J Ljava/util/Iterator<*>; (Ljava/util/Iterator<*>;)I element Ljava/lang/Object; ,(Ljava/util/Iterator<*>;Ljava/lang/Object;)Z "RuntimeVisibleParameterAnnotations Ljavax/annotation/CheckForNull; removeAll -(Ljava/util/Iterator;Ljava/util/Collection;)Z
removeFrom elementsToRemove Ljava/util/Collection; Z Ljava/util/Collection<*>; 3(Ljava/util/Iterator<*>;Ljava/util/Collection<*>;)Z RuntimeInvisibleAnnotations 8Lcom/google/errorprone/annotations/CanIgnoreReturnValue; removeIf 9(Ljava/util/Iterator;Lcom/google/common/base/Predicate;)Z "Lcom/google/common/base/Predicate; modified Ljava/util/Iterator; (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 ((Ljava/util/Iterator;)Ljava/lang/String; sb Ljava/lang/StringBuilder; first +(Ljava/util/Iterator<*>;)Ljava/lang/String; i I TT; 4(Ljava/util/Iterator;)TT; .Lcom/google/common/collect/ParametricNullness; defaultValue 8(Ljava/util/Iterator<+TT;>;TT;)TT; :(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; /Lcom/google/common/annotations/GwtIncompatible; 4Lorg/checkerframework/checker/nullness/qual/NonNull; 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 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; Ljava/lang/SafeVarargs; [TI; ;;>([TI;)Ljava/util/Iterator; >(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; inputs [Ljava/util/Iterator<+TT;>; L([Ljava/util/Iterator<+TT;>;)Ljava/util/Iterator; 1Ljava/util/Iterator<+Ljava/util/Iterator<+TT;>;>; b(Ljava/util/Iterator<+Ljava/util/Iterator<+TT;>;>;)Ljava/util/Iterator; input partition G(Ljava/util/Iterator;I)Lcom/google/common/collect/UnmodifiableIterator; y(Ljava/util/Iterator;I)Lcom/google/common/collect/UnmodifiableIterator;>; paddedPartition pad z(Ljava/util/Iterator;IZ)Lcom/google/common/collect/UnmodifiableIterator;>;
unfiltered retainIfTrue ?(Ljava/util/Iterator;Lcom/google/common/base/Predicate<-TT;>;)Lcom/google/common/collect/UnmodifiableIterator; W(Ljava/util/Iterator;Ljava/lang/Class;)Lcom/google/common/collect/UnmodifiableIterator; desiredType z(Ljava/util/Iterator<*>;Ljava/lang/Class;)Lcom/google/common/collect/UnmodifiableIterator; any all find J(Ljava/util/Iterator;Lcom/google/common/base/Predicate;)Ljava/lang/Object; t \(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; (Ljava/util/Iterator;Lcom/google/common/base/Predicate<-TT;>;)Lcom/google/common/base/Optional; 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; ;(Ljava/util/Iterator;ILjava/lang/Object;)Ljava/lang/Object; 9(Ljava/util/Iterator<+TT;>;ITT;)TT; 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 clear (Ljava/util/Iterator<*>;)V forArray E([Ljava/lang/Object;)Lcom/google/common/collect/UnmodifiableIterator; array Q([TT;)Lcom/google/common/collect/UnmodifiableIterator; V([TT;I)Lcom/google/common/collect/UnmodifiableListIterator; singletonIterator D(Ljava/lang/Object;)Lcom/google/common/collect/UnmodifiableIterator; value 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; 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;
SourceFile Iterators.java ;Lcom/google/common/collect/ElementTypesAreNonnullByDefault; -Lcom/google/common/annotations/GwtCompatible; emulated InnerClasses ArrayItr EmptyModifiableIterator ConcatenatedIterator SingletonIterator PeekingImpl MergingIterator 1 : / / *? ? 0 H1 23 45 / ? ? 0 P6 78
9 / ?
? 0 [6 :8
9 ;<