public final class com.google.common.collect.EvictingQueue<E> extends com.google.common.collect.ForwardingQueue<E> implements java.io.Serializable
minor version: 0
major version: 59
flags: flags: (0x0031) ACC_PUBLIC, ACC_FINAL, ACC_SUPER
this_class: com.google.common.collect.EvictingQueue
super_class: com.google.common.collect.ForwardingQueue
{
private final java.util.Queue<E> delegate;
descriptor: Ljava/util/Queue;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljava/util/Queue<TE;>;
final int maxSize;
descriptor: I
flags: (0x0010) ACC_FINAL
RuntimeInvisibleAnnotations:
com.google.common.annotations.VisibleForTesting()
private static final long serialVersionUID;
descriptor: J
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 0
private void <init>(int);
descriptor: (I)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokespecial com.google.common.collect.ForwardingQueue.<init>:()V
1: iload 1
iflt 2
iconst_1
goto 3
StackMap locals: com.google.common.collect.EvictingQueue int
StackMap stack:
2: iconst_0
StackMap locals:
StackMap stack: int
3: ldc "maxSize (%s) must >= 0"
iload 1
invokestatic com.google.common.base.Preconditions.checkArgument:(ZLjava/lang/String;I)V
4: aload 0
new java.util.ArrayDeque
dup
iload 1
invokespecial java.util.ArrayDeque.<init>:(I)V
putfield com.google.common.collect.EvictingQueue.delegate:Ljava/util/Queue;
5: aload 0
iload 1
putfield com.google.common.collect.EvictingQueue.maxSize:I
6: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lcom/google/common/collect/EvictingQueue<TE;>;
0 7 1 maxSize I
MethodParameters:
Name Flags
maxSize
public static <E> com.google.common.collect.EvictingQueue<E> create(int);
descriptor: (I)Lcom/google/common/collect/EvictingQueue;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: new com.google.common.collect.EvictingQueue
dup
iload 0
invokespecial com.google.common.collect.EvictingQueue.<init>:(I)V
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 maxSize I
Signature: <E:Ljava/lang/Object;>(I)Lcom/google/common/collect/EvictingQueue<TE;>;
MethodParameters:
Name Flags
maxSize
public int remainingCapacity();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield com.google.common.collect.EvictingQueue.maxSize:I
aload 0
invokevirtual com.google.common.collect.EvictingQueue.size:()I
isub
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/google/common/collect/EvictingQueue<TE;>;
protected java.util.Queue<E> delegate();
descriptor: ()Ljava/util/Queue;
flags: (0x0004) ACC_PROTECTED
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield com.google.common.collect.EvictingQueue.delegate:Ljava/util/Queue;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/google/common/collect/EvictingQueue<TE;>;
Signature: ()Ljava/util/Queue<TE;>;
public boolean offer();
descriptor: (Ljava/lang/Object;)Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokevirtual com.google.common.collect.EvictingQueue.add:(Ljava/lang/Object;)Z
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/google/common/collect/EvictingQueue<TE;>;
0 1 1 e TE;
Signature: (TE;)Z
RuntimeInvisibleAnnotations:
com.google.errorprone.annotations.CanIgnoreReturnValue()
MethodParameters:
Name Flags
e
public boolean add();
descriptor: (Ljava/lang/Object;)Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 1
invokestatic com.google.common.base.Preconditions.checkNotNull:(Ljava/lang/Object;)Ljava/lang/Object;
pop
1: aload 0
getfield com.google.common.collect.EvictingQueue.maxSize:I
ifne 3
2: iconst_1
ireturn
3: StackMap locals:
StackMap stack:
aload 0
invokevirtual com.google.common.collect.EvictingQueue.size:()I
aload 0
getfield com.google.common.collect.EvictingQueue.maxSize:I
if_icmpne 5
4: aload 0
getfield com.google.common.collect.EvictingQueue.delegate:Ljava/util/Queue;
invokeinterface java.util.Queue.remove:()Ljava/lang/Object;
pop
5: StackMap locals:
StackMap stack:
aload 0
getfield com.google.common.collect.EvictingQueue.delegate:Ljava/util/Queue;
aload 1
invokeinterface java.util.Queue.add:(Ljava/lang/Object;)Z
pop
6: iconst_1
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lcom/google/common/collect/EvictingQueue<TE;>;
0 7 1 e TE;
Signature: (TE;)Z
RuntimeInvisibleAnnotations:
com.google.errorprone.annotations.CanIgnoreReturnValue()
MethodParameters:
Name Flags
e
public boolean addAll(java.util.Collection<? extends E>);
descriptor: (Ljava/util/Collection;)Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=3, args_size=2
start local 0 start local 1 0: aload 1
invokeinterface java.util.Collection.size:()I
istore 2
start local 2 1: iload 2
aload 0
getfield com.google.common.collect.EvictingQueue.maxSize:I
if_icmplt 4
2: aload 0
invokevirtual com.google.common.collect.EvictingQueue.clear:()V
3: aload 0
aload 1
iload 2
aload 0
getfield com.google.common.collect.EvictingQueue.maxSize:I
isub
invokestatic com.google.common.collect.Iterables.skip:(Ljava/lang/Iterable;I)Ljava/lang/Iterable;
invokestatic com.google.common.collect.Iterables.addAll:(Ljava/util/Collection;Ljava/lang/Iterable;)Z
ireturn
4: StackMap locals: int
StackMap stack:
aload 0
aload 1
invokevirtual com.google.common.collect.EvictingQueue.standardAddAll:(Ljava/util/Collection;)Z
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lcom/google/common/collect/EvictingQueue<TE;>;
0 5 1 collection Ljava/util/Collection<+TE;>;
1 5 2 size I
Signature: (Ljava/util/Collection<+TE;>;)Z
RuntimeInvisibleAnnotations:
com.google.errorprone.annotations.CanIgnoreReturnValue()
MethodParameters:
Name Flags
collection
public boolean contains(java.lang.Object);
descriptor: (Ljava/lang/Object;)Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokevirtual com.google.common.collect.EvictingQueue.delegate:()Ljava/util/Queue;
aload 1
invokestatic com.google.common.base.Preconditions.checkNotNull:(Ljava/lang/Object;)Ljava/lang/Object;
invokeinterface java.util.Queue.contains:(Ljava/lang/Object;)Z
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/google/common/collect/EvictingQueue<TE;>;
0 1 1 object Ljava/lang/Object;
MethodParameters:
Name Flags
object
public boolean remove(java.lang.Object);
descriptor: (Ljava/lang/Object;)Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokevirtual com.google.common.collect.EvictingQueue.delegate:()Ljava/util/Queue;
aload 1
invokestatic com.google.common.base.Preconditions.checkNotNull:(Ljava/lang/Object;)Ljava/lang/Object;
invokeinterface java.util.Queue.remove:(Ljava/lang/Object;)Z
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/google/common/collect/EvictingQueue<TE;>;
0 1 1 object Ljava/lang/Object;
RuntimeInvisibleAnnotations:
com.google.errorprone.annotations.CanIgnoreReturnValue()
MethodParameters:
Name Flags
object
protected java.lang.Object delegate();
descriptor: ()Ljava/lang/Object;
flags: (0x1044) ACC_PROTECTED, ACC_BRIDGE, ACC_SYNTHETIC
Code:
stack=1, locals=1, args_size=1
0: aload 0
invokevirtual com.google.common.collect.EvictingQueue.delegate:()Ljava/util/Queue;
areturn
LocalVariableTable:
Start End Slot Name Signature
protected java.util.Collection delegate();
descriptor: ()Ljava/util/Collection;
flags: (0x1044) ACC_PROTECTED, ACC_BRIDGE, ACC_SYNTHETIC
Code:
stack=1, locals=1, args_size=1
0: aload 0
invokevirtual com.google.common.collect.EvictingQueue.delegate:()Ljava/util/Queue;
areturn
LocalVariableTable:
Start End Slot Name Signature
}
Signature: <E:Ljava/lang/Object;>Lcom/google/common/collect/ForwardingQueue<TE;>;Ljava/io/Serializable;
SourceFile: "EvictingQueue.java"
RuntimeInvisibleAnnotations:
com.google.common.annotations.Beta()
com.google.common.annotations.GwtCompatible()