770 lines
		
	
	
		
			19 KiB
		
	
	
	
		
			Smali
		
	
	
	
	
	
			
		
		
	
	
			770 lines
		
	
	
		
			19 KiB
		
	
	
	
		
			Smali
		
	
	
	
	
	
| .class public final Lcom/google/common/collect/Queues;
 | |
| .super Ljava/lang/Object;
 | |
| .source "Queues.java"
 | |
| 
 | |
| 
 | |
| # annotations
 | |
| .annotation build Lcom/google/common/annotations/GwtCompatible;
 | |
|     emulated = true
 | |
| .end annotation
 | |
| 
 | |
| .annotation runtime Lcom/google/common/collect/ElementTypesAreNonnullByDefault;
 | |
| .end annotation
 | |
| 
 | |
| 
 | |
| # direct methods
 | |
| .method private constructor <init>()V
 | |
|     .locals 0
 | |
| 
 | |
|     .line 1
 | |
|     invoke-direct {p0}, Ljava/lang/Object;-><init>()V
 | |
| 
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| .method public static drain(Ljava/util/concurrent/BlockingQueue;Ljava/util/Collection;IJLjava/util/concurrent/TimeUnit;)I
 | |
|     .locals 3
 | |
|     .annotation build Lcom/google/common/annotations/Beta;
 | |
|     .end annotation
 | |
| 
 | |
|     .annotation build Lcom/google/common/annotations/GwtIncompatible;
 | |
|     .end annotation
 | |
| 
 | |
|     .annotation build Lcom/google/errorprone/annotations/CanIgnoreReturnValue;
 | |
|     .end annotation
 | |
| 
 | |
|     .annotation system Ldalvik/annotation/Signature;
 | |
|         value = {
 | |
|             "<E:",
 | |
|             "Ljava/lang/Object;",
 | |
|             ">(",
 | |
|             "Ljava/util/concurrent/BlockingQueue<",
 | |
|             "TE;>;",
 | |
|             "Ljava/util/Collection<",
 | |
|             "-TE;>;IJ",
 | |
|             "Ljava/util/concurrent/TimeUnit;",
 | |
|             ")I"
 | |
|         }
 | |
|     .end annotation
 | |
| 
 | |
|     .annotation system Ldalvik/annotation/Throws;
 | |
|         value = {
 | |
|             Ljava/lang/InterruptedException;
 | |
|         }
 | |
|     .end annotation
 | |
| 
 | |
|     .line 1
 | |
|     invoke-static {p1}, Lcom/google/common/base/Preconditions;->checkNotNull(Ljava/lang/Object;)Ljava/lang/Object;
 | |
| 
 | |
|     .line 2
 | |
|     invoke-static {}, Ljava/lang/System;->nanoTime()J
 | |
| 
 | |
|     move-result-wide v0
 | |
| 
 | |
|     invoke-virtual {p5, p3, p4}, Ljava/util/concurrent/TimeUnit;->toNanos(J)J
 | |
| 
 | |
|     move-result-wide p3
 | |
| 
 | |
|     add-long/2addr p3, v0
 | |
| 
 | |
|     const/4 p5, 0x0
 | |
| 
 | |
|     :cond_0
 | |
|     :goto_0
 | |
|     if-ge p5, p2, :cond_2
 | |
| 
 | |
|     sub-int v0, p2, p5
 | |
| 
 | |
|     .line 3
 | |
|     invoke-interface {p0, p1, v0}, Ljava/util/concurrent/BlockingQueue;->drainTo(Ljava/util/Collection;I)I
 | |
| 
 | |
|     move-result v0
 | |
| 
 | |
|     add-int/2addr p5, v0
 | |
| 
 | |
|     if-ge p5, p2, :cond_0
 | |
| 
 | |
|     .line 4
 | |
|     invoke-static {}, Ljava/lang/System;->nanoTime()J
 | |
| 
 | |
|     move-result-wide v0
 | |
| 
 | |
|     sub-long v0, p3, v0
 | |
| 
 | |
|     sget-object v2, Ljava/util/concurrent/TimeUnit;->NANOSECONDS:Ljava/util/concurrent/TimeUnit;
 | |
| 
 | |
|     invoke-interface {p0, v0, v1, v2}, Ljava/util/concurrent/BlockingQueue;->poll(JLjava/util/concurrent/TimeUnit;)Ljava/lang/Object;
 | |
| 
 | |
|     move-result-object v0
 | |
| 
 | |
|     if-nez v0, :cond_1
 | |
| 
 | |
|     goto :goto_1
 | |
| 
 | |
|     .line 5
 | |
|     :cond_1
 | |
|     invoke-interface {p1, v0}, Ljava/util/Collection;->add(Ljava/lang/Object;)Z
 | |
| 
 | |
|     add-int/lit8 p5, p5, 0x1
 | |
| 
 | |
|     goto :goto_0
 | |
| 
 | |
|     :cond_2
 | |
|     :goto_1
 | |
|     return p5
 | |
| .end method
 | |
| 
 | |
| .method public static drainUninterruptibly(Ljava/util/concurrent/BlockingQueue;Ljava/util/Collection;IJLjava/util/concurrent/TimeUnit;)I
 | |
|     .locals 4
 | |
|     .annotation build Lcom/google/common/annotations/Beta;
 | |
|     .end annotation
 | |
| 
 | |
|     .annotation build Lcom/google/common/annotations/GwtIncompatible;
 | |
|     .end annotation
 | |
| 
 | |
|     .annotation build Lcom/google/errorprone/annotations/CanIgnoreReturnValue;
 | |
|     .end annotation
 | |
| 
 | |
|     .annotation system Ldalvik/annotation/Signature;
 | |
|         value = {
 | |
|             "<E:",
 | |
|             "Ljava/lang/Object;",
 | |
|             ">(",
 | |
|             "Ljava/util/concurrent/BlockingQueue<",
 | |
|             "TE;>;",
 | |
|             "Ljava/util/Collection<",
 | |
|             "-TE;>;IJ",
 | |
|             "Ljava/util/concurrent/TimeUnit;",
 | |
|             ")I"
 | |
|         }
 | |
|     .end annotation
 | |
| 
 | |
|     .line 1
 | |
|     invoke-static {p1}, Lcom/google/common/base/Preconditions;->checkNotNull(Ljava/lang/Object;)Ljava/lang/Object;
 | |
| 
 | |
|     .line 2
 | |
|     invoke-static {}, Ljava/lang/System;->nanoTime()J
 | |
| 
 | |
|     move-result-wide v0
 | |
| 
 | |
|     invoke-virtual {p5, p3, p4}, Ljava/util/concurrent/TimeUnit;->toNanos(J)J
 | |
| 
 | |
|     move-result-wide p3
 | |
| 
 | |
|     add-long/2addr p3, v0
 | |
| 
 | |
|     const/4 p5, 0x0
 | |
| 
 | |
|     move v0, p5
 | |
| 
 | |
|     :cond_0
 | |
|     :goto_0
 | |
|     if-ge p5, p2, :cond_3
 | |
| 
 | |
|     sub-int v1, p2, p5
 | |
| 
 | |
|     .line 3
 | |
|     :try_start_0
 | |
|     invoke-interface {p0, p1, v1}, Ljava/util/concurrent/BlockingQueue;->drainTo(Ljava/util/Collection;I)I
 | |
| 
 | |
|     move-result v1
 | |
|     :try_end_0
 | |
|     .catchall {:try_start_0 .. :try_end_0} :catchall_0
 | |
| 
 | |
|     add-int/2addr p5, v1
 | |
| 
 | |
|     if-ge p5, p2, :cond_0
 | |
| 
 | |
|     .line 4
 | |
|     :goto_1
 | |
|     :try_start_1
 | |
|     invoke-static {}, Ljava/lang/System;->nanoTime()J
 | |
| 
 | |
|     move-result-wide v1
 | |
| 
 | |
|     sub-long v1, p3, v1
 | |
| 
 | |
|     sget-object v3, Ljava/util/concurrent/TimeUnit;->NANOSECONDS:Ljava/util/concurrent/TimeUnit;
 | |
| 
 | |
|     invoke-interface {p0, v1, v2, v3}, Ljava/util/concurrent/BlockingQueue;->poll(JLjava/util/concurrent/TimeUnit;)Ljava/lang/Object;
 | |
| 
 | |
|     move-result-object v1
 | |
|     :try_end_1
 | |
|     .catch Ljava/lang/InterruptedException; {:try_start_1 .. :try_end_1} :catch_0
 | |
|     .catchall {:try_start_1 .. :try_end_1} :catchall_0
 | |
| 
 | |
|     if-nez v1, :cond_1
 | |
| 
 | |
|     goto :goto_2
 | |
| 
 | |
|     .line 5
 | |
|     :cond_1
 | |
|     :try_start_2
 | |
|     invoke-interface {p1, v1}, Ljava/util/Collection;->add(Ljava/lang/Object;)Z
 | |
|     :try_end_2
 | |
|     .catchall {:try_start_2 .. :try_end_2} :catchall_0
 | |
| 
 | |
|     add-int/lit8 p5, p5, 0x1
 | |
| 
 | |
|     goto :goto_0
 | |
| 
 | |
|     :catch_0
 | |
|     const/4 v0, 0x1
 | |
| 
 | |
|     goto :goto_1
 | |
| 
 | |
|     :catchall_0
 | |
|     move-exception p0
 | |
| 
 | |
|     if-eqz v0, :cond_2
 | |
| 
 | |
|     .line 6
 | |
|     invoke-static {}, Ljava/lang/Thread;->currentThread()Ljava/lang/Thread;
 | |
| 
 | |
|     move-result-object p1
 | |
| 
 | |
|     invoke-virtual {p1}, Ljava/lang/Thread;->interrupt()V
 | |
| 
 | |
|     .line 7
 | |
|     :cond_2
 | |
|     throw p0
 | |
| 
 | |
|     :cond_3
 | |
|     :goto_2
 | |
|     if-eqz v0, :cond_4
 | |
| 
 | |
|     .line 8
 | |
|     invoke-static {}, Ljava/lang/Thread;->currentThread()Ljava/lang/Thread;
 | |
| 
 | |
|     move-result-object p0
 | |
| 
 | |
|     invoke-virtual {p0}, Ljava/lang/Thread;->interrupt()V
 | |
| 
 | |
|     :cond_4
 | |
|     return p5
 | |
| .end method
 | |
| 
 | |
| .method public static newArrayBlockingQueue(I)Ljava/util/concurrent/ArrayBlockingQueue;
 | |
|     .locals 1
 | |
|     .annotation build Lcom/google/common/annotations/GwtIncompatible;
 | |
|     .end annotation
 | |
| 
 | |
|     .annotation system Ldalvik/annotation/Signature;
 | |
|         value = {
 | |
|             "<E:",
 | |
|             "Ljava/lang/Object;",
 | |
|             ">(I)",
 | |
|             "Ljava/util/concurrent/ArrayBlockingQueue<",
 | |
|             "TE;>;"
 | |
|         }
 | |
|     .end annotation
 | |
| 
 | |
|     .line 1
 | |
|     new-instance v0, Ljava/util/concurrent/ArrayBlockingQueue;
 | |
| 
 | |
|     invoke-direct {v0, p0}, Ljava/util/concurrent/ArrayBlockingQueue;-><init>(I)V
 | |
| 
 | |
|     return-object v0
 | |
| .end method
 | |
| 
 | |
| .method public static newArrayDeque()Ljava/util/ArrayDeque;
 | |
|     .locals 1
 | |
|     .annotation system Ldalvik/annotation/Signature;
 | |
|         value = {
 | |
|             "<E:",
 | |
|             "Ljava/lang/Object;",
 | |
|             ">()",
 | |
|             "Ljava/util/ArrayDeque<",
 | |
|             "TE;>;"
 | |
|         }
 | |
|     .end annotation
 | |
| 
 | |
|     .line 1
 | |
|     new-instance v0, Ljava/util/ArrayDeque;
 | |
| 
 | |
|     invoke-direct {v0}, Ljava/util/ArrayDeque;-><init>()V
 | |
| 
 | |
|     return-object v0
 | |
| .end method
 | |
| 
 | |
| .method public static newArrayDeque(Ljava/lang/Iterable;)Ljava/util/ArrayDeque;
 | |
|     .locals 1
 | |
|     .annotation system Ldalvik/annotation/Signature;
 | |
|         value = {
 | |
|             "<E:",
 | |
|             "Ljava/lang/Object;",
 | |
|             ">(",
 | |
|             "Ljava/lang/Iterable<",
 | |
|             "+TE;>;)",
 | |
|             "Ljava/util/ArrayDeque<",
 | |
|             "TE;>;"
 | |
|         }
 | |
|     .end annotation
 | |
| 
 | |
|     .line 2
 | |
|     instance-of v0, p0, Ljava/util/Collection;
 | |
| 
 | |
|     if-eqz v0, :cond_0
 | |
| 
 | |
|     .line 3
 | |
|     new-instance v0, Ljava/util/ArrayDeque;
 | |
| 
 | |
|     check-cast p0, Ljava/util/Collection;
 | |
| 
 | |
|     invoke-direct {v0, p0}, Ljava/util/ArrayDeque;-><init>(Ljava/util/Collection;)V
 | |
| 
 | |
|     return-object v0
 | |
| 
 | |
|     .line 4
 | |
|     :cond_0
 | |
|     new-instance v0, Ljava/util/ArrayDeque;
 | |
| 
 | |
|     invoke-direct {v0}, Ljava/util/ArrayDeque;-><init>()V
 | |
| 
 | |
|     .line 5
 | |
|     invoke-static {v0, p0}, Lcom/google/common/collect/Iterables;->addAll(Ljava/util/Collection;Ljava/lang/Iterable;)Z
 | |
| 
 | |
|     return-object v0
 | |
| .end method
 | |
| 
 | |
| .method public static newConcurrentLinkedQueue()Ljava/util/concurrent/ConcurrentLinkedQueue;
 | |
|     .locals 1
 | |
|     .annotation build Lcom/google/common/annotations/GwtIncompatible;
 | |
|     .end annotation
 | |
| 
 | |
|     .annotation system Ldalvik/annotation/Signature;
 | |
|         value = {
 | |
|             "<E:",
 | |
|             "Ljava/lang/Object;",
 | |
|             ">()",
 | |
|             "Ljava/util/concurrent/ConcurrentLinkedQueue<",
 | |
|             "TE;>;"
 | |
|         }
 | |
|     .end annotation
 | |
| 
 | |
|     .line 1
 | |
|     new-instance v0, Ljava/util/concurrent/ConcurrentLinkedQueue;
 | |
| 
 | |
|     invoke-direct {v0}, Ljava/util/concurrent/ConcurrentLinkedQueue;-><init>()V
 | |
| 
 | |
|     return-object v0
 | |
| .end method
 | |
| 
 | |
| .method public static newConcurrentLinkedQueue(Ljava/lang/Iterable;)Ljava/util/concurrent/ConcurrentLinkedQueue;
 | |
|     .locals 1
 | |
|     .annotation build Lcom/google/common/annotations/GwtIncompatible;
 | |
|     .end annotation
 | |
| 
 | |
|     .annotation system Ldalvik/annotation/Signature;
 | |
|         value = {
 | |
|             "<E:",
 | |
|             "Ljava/lang/Object;",
 | |
|             ">(",
 | |
|             "Ljava/lang/Iterable<",
 | |
|             "+TE;>;)",
 | |
|             "Ljava/util/concurrent/ConcurrentLinkedQueue<",
 | |
|             "TE;>;"
 | |
|         }
 | |
|     .end annotation
 | |
| 
 | |
|     .line 2
 | |
|     instance-of v0, p0, Ljava/util/Collection;
 | |
| 
 | |
|     if-eqz v0, :cond_0
 | |
| 
 | |
|     .line 3
 | |
|     new-instance v0, Ljava/util/concurrent/ConcurrentLinkedQueue;
 | |
| 
 | |
|     check-cast p0, Ljava/util/Collection;
 | |
| 
 | |
|     invoke-direct {v0, p0}, Ljava/util/concurrent/ConcurrentLinkedQueue;-><init>(Ljava/util/Collection;)V
 | |
| 
 | |
|     return-object v0
 | |
| 
 | |
|     .line 4
 | |
|     :cond_0
 | |
|     new-instance v0, Ljava/util/concurrent/ConcurrentLinkedQueue;
 | |
| 
 | |
|     invoke-direct {v0}, Ljava/util/concurrent/ConcurrentLinkedQueue;-><init>()V
 | |
| 
 | |
|     .line 5
 | |
|     invoke-static {v0, p0}, Lcom/google/common/collect/Iterables;->addAll(Ljava/util/Collection;Ljava/lang/Iterable;)Z
 | |
| 
 | |
|     return-object v0
 | |
| .end method
 | |
| 
 | |
| .method public static newLinkedBlockingDeque()Ljava/util/concurrent/LinkedBlockingDeque;
 | |
|     .locals 1
 | |
|     .annotation build Lcom/google/common/annotations/GwtIncompatible;
 | |
|     .end annotation
 | |
| 
 | |
|     .annotation system Ldalvik/annotation/Signature;
 | |
|         value = {
 | |
|             "<E:",
 | |
|             "Ljava/lang/Object;",
 | |
|             ">()",
 | |
|             "Ljava/util/concurrent/LinkedBlockingDeque<",
 | |
|             "TE;>;"
 | |
|         }
 | |
|     .end annotation
 | |
| 
 | |
|     .line 1
 | |
|     new-instance v0, Ljava/util/concurrent/LinkedBlockingDeque;
 | |
| 
 | |
|     invoke-direct {v0}, Ljava/util/concurrent/LinkedBlockingDeque;-><init>()V
 | |
| 
 | |
|     return-object v0
 | |
| .end method
 | |
| 
 | |
| .method public static newLinkedBlockingDeque(I)Ljava/util/concurrent/LinkedBlockingDeque;
 | |
|     .locals 1
 | |
|     .annotation build Lcom/google/common/annotations/GwtIncompatible;
 | |
|     .end annotation
 | |
| 
 | |
|     .annotation system Ldalvik/annotation/Signature;
 | |
|         value = {
 | |
|             "<E:",
 | |
|             "Ljava/lang/Object;",
 | |
|             ">(I)",
 | |
|             "Ljava/util/concurrent/LinkedBlockingDeque<",
 | |
|             "TE;>;"
 | |
|         }
 | |
|     .end annotation
 | |
| 
 | |
|     .line 2
 | |
|     new-instance v0, Ljava/util/concurrent/LinkedBlockingDeque;
 | |
| 
 | |
|     invoke-direct {v0, p0}, Ljava/util/concurrent/LinkedBlockingDeque;-><init>(I)V
 | |
| 
 | |
|     return-object v0
 | |
| .end method
 | |
| 
 | |
| .method public static newLinkedBlockingDeque(Ljava/lang/Iterable;)Ljava/util/concurrent/LinkedBlockingDeque;
 | |
|     .locals 1
 | |
|     .annotation build Lcom/google/common/annotations/GwtIncompatible;
 | |
|     .end annotation
 | |
| 
 | |
|     .annotation system Ldalvik/annotation/Signature;
 | |
|         value = {
 | |
|             "<E:",
 | |
|             "Ljava/lang/Object;",
 | |
|             ">(",
 | |
|             "Ljava/lang/Iterable<",
 | |
|             "+TE;>;)",
 | |
|             "Ljava/util/concurrent/LinkedBlockingDeque<",
 | |
|             "TE;>;"
 | |
|         }
 | |
|     .end annotation
 | |
| 
 | |
|     .line 3
 | |
|     instance-of v0, p0, Ljava/util/Collection;
 | |
| 
 | |
|     if-eqz v0, :cond_0
 | |
| 
 | |
|     .line 4
 | |
|     new-instance v0, Ljava/util/concurrent/LinkedBlockingDeque;
 | |
| 
 | |
|     check-cast p0, Ljava/util/Collection;
 | |
| 
 | |
|     invoke-direct {v0, p0}, Ljava/util/concurrent/LinkedBlockingDeque;-><init>(Ljava/util/Collection;)V
 | |
| 
 | |
|     return-object v0
 | |
| 
 | |
|     .line 5
 | |
|     :cond_0
 | |
|     new-instance v0, Ljava/util/concurrent/LinkedBlockingDeque;
 | |
| 
 | |
|     invoke-direct {v0}, Ljava/util/concurrent/LinkedBlockingDeque;-><init>()V
 | |
| 
 | |
|     .line 6
 | |
|     invoke-static {v0, p0}, Lcom/google/common/collect/Iterables;->addAll(Ljava/util/Collection;Ljava/lang/Iterable;)Z
 | |
| 
 | |
|     return-object v0
 | |
| .end method
 | |
| 
 | |
| .method public static newLinkedBlockingQueue()Ljava/util/concurrent/LinkedBlockingQueue;
 | |
|     .locals 1
 | |
|     .annotation build Lcom/google/common/annotations/GwtIncompatible;
 | |
|     .end annotation
 | |
| 
 | |
|     .annotation system Ldalvik/annotation/Signature;
 | |
|         value = {
 | |
|             "<E:",
 | |
|             "Ljava/lang/Object;",
 | |
|             ">()",
 | |
|             "Ljava/util/concurrent/LinkedBlockingQueue<",
 | |
|             "TE;>;"
 | |
|         }
 | |
|     .end annotation
 | |
| 
 | |
|     .line 1
 | |
|     new-instance v0, Ljava/util/concurrent/LinkedBlockingQueue;
 | |
| 
 | |
|     invoke-direct {v0}, Ljava/util/concurrent/LinkedBlockingQueue;-><init>()V
 | |
| 
 | |
|     return-object v0
 | |
| .end method
 | |
| 
 | |
| .method public static newLinkedBlockingQueue(I)Ljava/util/concurrent/LinkedBlockingQueue;
 | |
|     .locals 1
 | |
|     .annotation build Lcom/google/common/annotations/GwtIncompatible;
 | |
|     .end annotation
 | |
| 
 | |
|     .annotation system Ldalvik/annotation/Signature;
 | |
|         value = {
 | |
|             "<E:",
 | |
|             "Ljava/lang/Object;",
 | |
|             ">(I)",
 | |
|             "Ljava/util/concurrent/LinkedBlockingQueue<",
 | |
|             "TE;>;"
 | |
|         }
 | |
|     .end annotation
 | |
| 
 | |
|     .line 2
 | |
|     new-instance v0, Ljava/util/concurrent/LinkedBlockingQueue;
 | |
| 
 | |
|     invoke-direct {v0, p0}, Ljava/util/concurrent/LinkedBlockingQueue;-><init>(I)V
 | |
| 
 | |
|     return-object v0
 | |
| .end method
 | |
| 
 | |
| .method public static newLinkedBlockingQueue(Ljava/lang/Iterable;)Ljava/util/concurrent/LinkedBlockingQueue;
 | |
|     .locals 1
 | |
|     .annotation build Lcom/google/common/annotations/GwtIncompatible;
 | |
|     .end annotation
 | |
| 
 | |
|     .annotation system Ldalvik/annotation/Signature;
 | |
|         value = {
 | |
|             "<E:",
 | |
|             "Ljava/lang/Object;",
 | |
|             ">(",
 | |
|             "Ljava/lang/Iterable<",
 | |
|             "+TE;>;)",
 | |
|             "Ljava/util/concurrent/LinkedBlockingQueue<",
 | |
|             "TE;>;"
 | |
|         }
 | |
|     .end annotation
 | |
| 
 | |
|     .line 3
 | |
|     instance-of v0, p0, Ljava/util/Collection;
 | |
| 
 | |
|     if-eqz v0, :cond_0
 | |
| 
 | |
|     .line 4
 | |
|     new-instance v0, Ljava/util/concurrent/LinkedBlockingQueue;
 | |
| 
 | |
|     check-cast p0, Ljava/util/Collection;
 | |
| 
 | |
|     invoke-direct {v0, p0}, Ljava/util/concurrent/LinkedBlockingQueue;-><init>(Ljava/util/Collection;)V
 | |
| 
 | |
|     return-object v0
 | |
| 
 | |
|     .line 5
 | |
|     :cond_0
 | |
|     new-instance v0, Ljava/util/concurrent/LinkedBlockingQueue;
 | |
| 
 | |
|     invoke-direct {v0}, Ljava/util/concurrent/LinkedBlockingQueue;-><init>()V
 | |
| 
 | |
|     .line 6
 | |
|     invoke-static {v0, p0}, Lcom/google/common/collect/Iterables;->addAll(Ljava/util/Collection;Ljava/lang/Iterable;)Z
 | |
| 
 | |
|     return-object v0
 | |
| .end method
 | |
| 
 | |
| .method public static newPriorityBlockingQueue()Ljava/util/concurrent/PriorityBlockingQueue;
 | |
|     .locals 1
 | |
|     .annotation build Lcom/google/common/annotations/GwtIncompatible;
 | |
|     .end annotation
 | |
| 
 | |
|     .annotation system Ldalvik/annotation/Signature;
 | |
|         value = {
 | |
|             "<E::",
 | |
|             "Ljava/lang/Comparable;",
 | |
|             ">()",
 | |
|             "Ljava/util/concurrent/PriorityBlockingQueue<",
 | |
|             "TE;>;"
 | |
|         }
 | |
|     .end annotation
 | |
| 
 | |
|     .line 1
 | |
|     new-instance v0, Ljava/util/concurrent/PriorityBlockingQueue;
 | |
| 
 | |
|     invoke-direct {v0}, Ljava/util/concurrent/PriorityBlockingQueue;-><init>()V
 | |
| 
 | |
|     return-object v0
 | |
| .end method
 | |
| 
 | |
| .method public static newPriorityBlockingQueue(Ljava/lang/Iterable;)Ljava/util/concurrent/PriorityBlockingQueue;
 | |
|     .locals 1
 | |
|     .annotation build Lcom/google/common/annotations/GwtIncompatible;
 | |
|     .end annotation
 | |
| 
 | |
|     .annotation system Ldalvik/annotation/Signature;
 | |
|         value = {
 | |
|             "<E::",
 | |
|             "Ljava/lang/Comparable;",
 | |
|             ">(",
 | |
|             "Ljava/lang/Iterable<",
 | |
|             "+TE;>;)",
 | |
|             "Ljava/util/concurrent/PriorityBlockingQueue<",
 | |
|             "TE;>;"
 | |
|         }
 | |
|     .end annotation
 | |
| 
 | |
|     .line 2
 | |
|     instance-of v0, p0, Ljava/util/Collection;
 | |
| 
 | |
|     if-eqz v0, :cond_0
 | |
| 
 | |
|     .line 3
 | |
|     new-instance v0, Ljava/util/concurrent/PriorityBlockingQueue;
 | |
| 
 | |
|     check-cast p0, Ljava/util/Collection;
 | |
| 
 | |
|     invoke-direct {v0, p0}, Ljava/util/concurrent/PriorityBlockingQueue;-><init>(Ljava/util/Collection;)V
 | |
| 
 | |
|     return-object v0
 | |
| 
 | |
|     .line 4
 | |
|     :cond_0
 | |
|     new-instance v0, Ljava/util/concurrent/PriorityBlockingQueue;
 | |
| 
 | |
|     invoke-direct {v0}, Ljava/util/concurrent/PriorityBlockingQueue;-><init>()V
 | |
| 
 | |
|     .line 5
 | |
|     invoke-static {v0, p0}, Lcom/google/common/collect/Iterables;->addAll(Ljava/util/Collection;Ljava/lang/Iterable;)Z
 | |
| 
 | |
|     return-object v0
 | |
| .end method
 | |
| 
 | |
| .method public static newPriorityQueue()Ljava/util/PriorityQueue;
 | |
|     .locals 1
 | |
|     .annotation system Ldalvik/annotation/Signature;
 | |
|         value = {
 | |
|             "<E::",
 | |
|             "Ljava/lang/Comparable;",
 | |
|             ">()",
 | |
|             "Ljava/util/PriorityQueue<",
 | |
|             "TE;>;"
 | |
|         }
 | |
|     .end annotation
 | |
| 
 | |
|     .line 1
 | |
|     new-instance v0, Ljava/util/PriorityQueue;
 | |
| 
 | |
|     invoke-direct {v0}, Ljava/util/PriorityQueue;-><init>()V
 | |
| 
 | |
|     return-object v0
 | |
| .end method
 | |
| 
 | |
| .method public static newPriorityQueue(Ljava/lang/Iterable;)Ljava/util/PriorityQueue;
 | |
|     .locals 1
 | |
|     .annotation system Ldalvik/annotation/Signature;
 | |
|         value = {
 | |
|             "<E::",
 | |
|             "Ljava/lang/Comparable;",
 | |
|             ">(",
 | |
|             "Ljava/lang/Iterable<",
 | |
|             "+TE;>;)",
 | |
|             "Ljava/util/PriorityQueue<",
 | |
|             "TE;>;"
 | |
|         }
 | |
|     .end annotation
 | |
| 
 | |
|     .line 2
 | |
|     instance-of v0, p0, Ljava/util/Collection;
 | |
| 
 | |
|     if-eqz v0, :cond_0
 | |
| 
 | |
|     .line 3
 | |
|     new-instance v0, Ljava/util/PriorityQueue;
 | |
| 
 | |
|     check-cast p0, Ljava/util/Collection;
 | |
| 
 | |
|     invoke-direct {v0, p0}, Ljava/util/PriorityQueue;-><init>(Ljava/util/Collection;)V
 | |
| 
 | |
|     return-object v0
 | |
| 
 | |
|     .line 4
 | |
|     :cond_0
 | |
|     new-instance v0, Ljava/util/PriorityQueue;
 | |
| 
 | |
|     invoke-direct {v0}, Ljava/util/PriorityQueue;-><init>()V
 | |
| 
 | |
|     .line 5
 | |
|     invoke-static {v0, p0}, Lcom/google/common/collect/Iterables;->addAll(Ljava/util/Collection;Ljava/lang/Iterable;)Z
 | |
| 
 | |
|     return-object v0
 | |
| .end method
 | |
| 
 | |
| .method public static newSynchronousQueue()Ljava/util/concurrent/SynchronousQueue;
 | |
|     .locals 1
 | |
|     .annotation build Lcom/google/common/annotations/GwtIncompatible;
 | |
|     .end annotation
 | |
| 
 | |
|     .annotation system Ldalvik/annotation/Signature;
 | |
|         value = {
 | |
|             "<E:",
 | |
|             "Ljava/lang/Object;",
 | |
|             ">()",
 | |
|             "Ljava/util/concurrent/SynchronousQueue<",
 | |
|             "TE;>;"
 | |
|         }
 | |
|     .end annotation
 | |
| 
 | |
|     .line 1
 | |
|     new-instance v0, Ljava/util/concurrent/SynchronousQueue;
 | |
| 
 | |
|     invoke-direct {v0}, Ljava/util/concurrent/SynchronousQueue;-><init>()V
 | |
| 
 | |
|     return-object v0
 | |
| .end method
 | |
| 
 | |
| .method public static synchronizedDeque(Ljava/util/Deque;)Ljava/util/Deque;
 | |
|     .locals 1
 | |
|     .annotation system Ldalvik/annotation/Signature;
 | |
|         value = {
 | |
|             "<E:",
 | |
|             "Ljava/lang/Object;",
 | |
|             ">(",
 | |
|             "Ljava/util/Deque<",
 | |
|             "TE;>;)",
 | |
|             "Ljava/util/Deque<",
 | |
|             "TE;>;"
 | |
|         }
 | |
|     .end annotation
 | |
| 
 | |
|     const/4 v0, 0x0
 | |
| 
 | |
|     .line 1
 | |
|     invoke-static {p0, v0}, Lcom/google/common/collect/Synchronized;->deque(Ljava/util/Deque;Ljava/lang/Object;)Ljava/util/Deque;
 | |
| 
 | |
|     move-result-object p0
 | |
| 
 | |
|     return-object p0
 | |
| .end method
 | |
| 
 | |
| .method public static synchronizedQueue(Ljava/util/Queue;)Ljava/util/Queue;
 | |
|     .locals 1
 | |
|     .annotation system Ldalvik/annotation/Signature;
 | |
|         value = {
 | |
|             "<E:",
 | |
|             "Ljava/lang/Object;",
 | |
|             ">(",
 | |
|             "Ljava/util/Queue<",
 | |
|             "TE;>;)",
 | |
|             "Ljava/util/Queue<",
 | |
|             "TE;>;"
 | |
|         }
 | |
|     .end annotation
 | |
| 
 | |
|     const/4 v0, 0x0
 | |
| 
 | |
|     .line 1
 | |
|     invoke-static {p0, v0}, Lcom/google/common/collect/Synchronized;->queue(Ljava/util/Queue;Ljava/lang/Object;)Ljava/util/Queue;
 | |
| 
 | |
|     move-result-object p0
 | |
| 
 | |
|     return-object p0
 | |
| .end method
 |