public final class com.google.common.collect.EvictingQueue extends com.google.common.collect.ForwardingQueue implements java.io.Serializable
{
private final java.util.Queue delegate;
final int maxSize;
private static final long serialVersionUID;
private void <init>(int)
{
com.google.common.collect.EvictingQueue v;
int v;
java.util.ArrayDeque v;
boolean v;
v := @this: com.google.common.collect.EvictingQueue;
v := @parameter: int;
specialinvoke v.<com.google.common.collect.ForwardingQueue: void <init>()>();
if v < 0 goto label;
v = 1;
goto label;
label:
v = 0;
label:
staticinvoke <com.google.common.base.Preconditions: void checkArgument(boolean,java.lang.String,int)>(v, "maxSize (%s) must >= 0", v);
v = new java.util.ArrayDeque;
specialinvoke v.<java.util.ArrayDeque: void <init>(int)>(v);
v.<com.google.common.collect.EvictingQueue: java.util.Queue delegate> = v;
v.<com.google.common.collect.EvictingQueue: int maxSize> = v;
return;
}
public static com.google.common.collect.EvictingQueue create(int)
{
int v;
com.google.common.collect.EvictingQueue v;
v := @parameter: int;
v = new com.google.common.collect.EvictingQueue;
specialinvoke v.<com.google.common.collect.EvictingQueue: void <init>(int)>(v);
return v;
}
public int remainingCapacity()
{
com.google.common.collect.EvictingQueue v;
int v, v, v;
v := @this: com.google.common.collect.EvictingQueue;
v = v.<com.google.common.collect.EvictingQueue: int maxSize>;
v = virtualinvoke v.<com.google.common.collect.EvictingQueue: int size()>();
v = v - v;
return v;
}
protected java.util.Queue delegate()
{
java.util.Queue v;
com.google.common.collect.EvictingQueue v;
v := @this: com.google.common.collect.EvictingQueue;
v = v.<com.google.common.collect.EvictingQueue: java.util.Queue delegate>;
return v;
}
public boolean offer(java.lang.Object)
{
java.lang.Object v;
com.google.common.collect.EvictingQueue v;
boolean v;
v := @this: com.google.common.collect.EvictingQueue;
v := @parameter: java.lang.Object;
v = virtualinvoke v.<com.google.common.collect.EvictingQueue: boolean add(java.lang.Object)>(v);
return v;
}
public boolean add(java.lang.Object)
{
com.google.common.collect.EvictingQueue v;
int v, v, v;
java.lang.Object v;
java.util.Queue v, v;
v := @this: com.google.common.collect.EvictingQueue;
v := @parameter: java.lang.Object;
staticinvoke <com.google.common.base.Preconditions: java.lang.Object checkNotNull(java.lang.Object)>(v);
v = v.<com.google.common.collect.EvictingQueue: int maxSize>;
if v != 0 goto label;
return 1;
label:
v = virtualinvoke v.<com.google.common.collect.EvictingQueue: int size()>();
v = v.<com.google.common.collect.EvictingQueue: int maxSize>;
if v != v goto label;
v = v.<com.google.common.collect.EvictingQueue: java.util.Queue delegate>;
interfaceinvoke v.<java.util.Queue: java.lang.Object remove()>();
label:
v = v.<com.google.common.collect.EvictingQueue: java.util.Queue delegate>;
interfaceinvoke v.<java.util.Queue: boolean add(java.lang.Object)>(v);
return 1;
}
public boolean addAll(java.util.Collection)
{
java.util.Collection v;
java.lang.Iterable v;
com.google.common.collect.EvictingQueue v;
int v, v, v, v;
boolean v, v;
v := @this: com.google.common.collect.EvictingQueue;
v := @parameter: java.util.Collection;
v = interfaceinvoke v.<java.util.Collection: int size()>();
v = v.<com.google.common.collect.EvictingQueue: int maxSize>;
if v < v goto label;
virtualinvoke v.<com.google.common.collect.EvictingQueue: void clear()>();
v = v.<com.google.common.collect.EvictingQueue: int maxSize>;
v = v - v;
v = staticinvoke <com.google.common.collect.Iterables: java.lang.Iterable skip(java.lang.Iterable,int)>(v, v);
v = staticinvoke <com.google.common.collect.Iterables: boolean addAll(java.util.Collection,java.lang.Iterable)>(v, v);
return v;
label:
v = virtualinvoke v.<com.google.common.collect.EvictingQueue: boolean standardAddAll(java.util.Collection)>(v);
return v;
}
public java.lang.Object[] toArray()
{
java.lang.Object[] v;
com.google.common.collect.EvictingQueue v;
v := @this: com.google.common.collect.EvictingQueue;
v = specialinvoke v.<com.google.common.collect.ForwardingQueue: java.lang.Object[] toArray()>();
return v;
}
}