com.google.common.collect.Queues.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 ?
* ? ?
? ?
? ?
? ?
?
? ? ?
?
? ?
?
?
? ?
?
?
? ?
?
? ?
?
? ?
?
? ?
? ?
? ? ? ? ? ? ? ? ? ?
? ?
? ?
? ?
? ? ? ? ()V Code LineNumberTable LocalVariableTable this "Lcom/google/common/collect/Queues; newArrayBlockingQueue ,(I)Ljava/util/concurrent/ArrayBlockingQueue; capacity I Signature G(I)Ljava/util/concurrent/ArrayBlockingQueue;
newArrayDeque ()Ljava/util/ArrayDeque; 3()Ljava/util/ArrayDeque; ,(Ljava/lang/Iterable;)Ljava/util/ArrayDeque; elements Ljava/lang/Iterable; deque Ljava/util/ArrayDeque; LocalVariableTypeTable Ljava/lang/Iterable<+TE;>; Ljava/util/ArrayDeque;
StackMapTable M(Ljava/lang/Iterable<+TE;>;)Ljava/util/ArrayDeque; newConcurrentLinkedQueue .()Ljava/util/concurrent/ConcurrentLinkedQueue; I()Ljava/util/concurrent/ConcurrentLinkedQueue; B(Ljava/lang/Iterable;)Ljava/util/concurrent/ConcurrentLinkedQueue; queue ,Ljava/util/concurrent/ConcurrentLinkedQueue; 1Ljava/util/concurrent/ConcurrentLinkedQueue; c(Ljava/lang/Iterable<+TE;>;)Ljava/util/concurrent/ConcurrentLinkedQueue; newLinkedBlockingDeque ,()Ljava/util/concurrent/LinkedBlockingDeque; G()Ljava/util/concurrent/LinkedBlockingDeque; -(I)Ljava/util/concurrent/LinkedBlockingDeque; H(I)Ljava/util/concurrent/LinkedBlockingDeque; @(Ljava/lang/Iterable;)Ljava/util/concurrent/LinkedBlockingDeque; *Ljava/util/concurrent/LinkedBlockingDeque; /Ljava/util/concurrent/LinkedBlockingDeque; a(Ljava/lang/Iterable<+TE;>;)Ljava/util/concurrent/LinkedBlockingDeque; newLinkedBlockingQueue ,()Ljava/util/concurrent/LinkedBlockingQueue; G()Ljava/util/concurrent/LinkedBlockingQueue; -(I)Ljava/util/concurrent/LinkedBlockingQueue; H(I)Ljava/util/concurrent/LinkedBlockingQueue; @(Ljava/lang/Iterable;)Ljava/util/concurrent/LinkedBlockingQueue; *Ljava/util/concurrent/LinkedBlockingQueue; /Ljava/util/concurrent/LinkedBlockingQueue; a(Ljava/lang/Iterable<+TE;>;)Ljava/util/concurrent/LinkedBlockingQueue; newPriorityBlockingQueue .()Ljava/util/concurrent/PriorityBlockingQueue; N()Ljava/util/concurrent/PriorityBlockingQueue; B(Ljava/lang/Iterable;)Ljava/util/concurrent/PriorityBlockingQueue; ,Ljava/util/concurrent/PriorityBlockingQueue; 1Ljava/util/concurrent/PriorityBlockingQueue; h(Ljava/lang/Iterable<+TE;>;)Ljava/util/concurrent/PriorityBlockingQueue; newPriorityQueue ()Ljava/util/PriorityQueue; ;()Ljava/util/PriorityQueue; /(Ljava/lang/Iterable;)Ljava/util/PriorityQueue; Ljava/util/PriorityQueue; Ljava/util/PriorityQueue; U(Ljava/lang/Iterable<+TE;>;)Ljava/util/PriorityQueue; newSynchronousQueue )()Ljava/util/concurrent/SynchronousQueue; D()Ljava/util/concurrent/SynchronousQueue; drain ^(Ljava/util/concurrent/BlockingQueue;Ljava/util/Collection;IJLjava/util/concurrent/TimeUnit;)I e Ljava/lang/Object; q $Ljava/util/concurrent/BlockingQueue; buffer Ljava/util/Collection; numElements timeout J unit Ljava/util/concurrent/TimeUnit; deadline added TE; )Ljava/util/concurrent/BlockingQueue; Ljava/util/Collection<-TE;>; ?
Exceptions (Ljava/util/concurrent/BlockingQueue;Ljava/util/Collection<-TE;>;IJLjava/util/concurrent/TimeUnit;)I RuntimeInvisibleAnnotations $Lcom/google/common/annotations/Beta; drainUninterruptibly ex Ljava/lang/InterruptedException; interrupted Z ? ? synchronizedQueue $(Ljava/util/Queue;)Ljava/util/Queue; Ljava/util/Queue; Ljava/util/Queue; D(Ljava/util/Queue;)Ljava/util/Queue; synchronizedDeque $(Ljava/util/Deque;)Ljava/util/Deque; Ljava/util/Deque; Ljava/util/Deque; D(Ljava/util/Deque;)Ljava/util/Deque;
SourceFile Queues.java + , 'java/util/concurrent/ArrayBlockingQueue + ? java/util/ArrayDeque java/util/Collection ? ? ? + ? ? ? ? *java/util/concurrent/ConcurrentLinkedQueue (java/util/concurrent/LinkedBlockingDeque (java/util/concurrent/LinkedBlockingQueue *java/util/concurrent/PriorityBlockingQueue java/util/PriorityQueue %java/util/concurrent/SynchronousQueue ? ? ? ? ? ? ? ? ? ? ? ? ? | ? ? ? ? java/lang/InterruptedException ? ? ? ? , ? I ? > ? com/google/common/collect/Queues java/lang/Object java/lang/Throwable (I)V &com/google/common/collect/Collections2 cast ,(Ljava/lang/Iterable;)Ljava/util/Collection; (Ljava/util/Collection;)V #com/google/common/collect/Iterables addAll -(Ljava/util/Collection;Ljava/lang/Iterable;)Z $com/google/common/base/Preconditions checkNotNull &(Ljava/lang/Object;)Ljava/lang/Object; java/lang/System nanoTime ()J java/util/concurrent/TimeUnit toNanos (J)J "java/util/concurrent/BlockingQueue drainTo (Ljava/util/Collection;I)I NANOSECONDS poll 4(JLjava/util/concurrent/TimeUnit;)Ljava/lang/Object; add (Ljava/lang/Object;)Z java/lang/Thread
currentThread ()Ljava/lang/Thread; interrupt &com/google/common/collect/Synchronized 6(Ljava/util/Queue;Ljava/lang/Object;)Ljava/util/Queue; 6(Ljava/util/Deque;Ljava/lang/Object;)Ljava/util/Deque; 1 ) * + , - / *? ? . * / 0 1 2 3 - 3 ? Y? ? . 3 / 4 5 6 7 8 9 - ? Y? ? . > 6 : 8 ; - ? #*? ? ? Y*? ? ?? Y? L+*? W+? . H I K L ! M / # <