public class org.apache.kafkaesqueesque.common.cache.LRUCache extends java.lang.Object implements org.apache.kafkaesqueesque.common.cache.Cache
{
private final java.util.LinkedHashMap cache;
public void <init>(int)
{
int v;
org.apache.kafkaesqueesque.common.cache.LRUCache v;
org.apache.kafkaesqueesque.common.cache.LRUCache$1 v;
v := @this: org.apache.kafkaesqueesque.common.cache.LRUCache;
v := @parameter: int;
specialinvoke v.<java.lang.Object: void <init>()>();
v = new org.apache.kafkaesqueesque.common.cache.LRUCache$1;
specialinvoke v.<org.apache.kafkaesqueesque.common.cache.LRUCache$1: void <init>(org.apache.kafkaesqueesque.common.cache.LRUCache,int,float,boolean,int)>(v, 16, 0.75F, 1, v);
v.<org.apache.kafkaesqueesque.common.cache.LRUCache: java.util.LinkedHashMap cache> = v;
return;
}
public java.lang.Object get(java.lang.Object)
{
java.util.LinkedHashMap v;
org.apache.kafkaesqueesque.common.cache.LRUCache v;
java.lang.Object v, v;
v := @this: org.apache.kafkaesqueesque.common.cache.LRUCache;
v := @parameter: java.lang.Object;
v = v.<org.apache.kafkaesqueesque.common.cache.LRUCache: java.util.LinkedHashMap cache>;
v = virtualinvoke v.<java.util.LinkedHashMap: java.lang.Object get(java.lang.Object)>(v);
return v;
}
public void put(java.lang.Object, java.lang.Object)
{
java.util.LinkedHashMap v;
org.apache.kafkaesqueesque.common.cache.LRUCache v;
java.lang.Object v, v;
v := @this: org.apache.kafkaesqueesque.common.cache.LRUCache;
v := @parameter: java.lang.Object;
v := @parameter: java.lang.Object;
v = v.<org.apache.kafkaesqueesque.common.cache.LRUCache: java.util.LinkedHashMap cache>;
virtualinvoke v.<java.util.LinkedHashMap: java.lang.Object put(java.lang.Object,java.lang.Object)>(v, v);
return;
}
public boolean remove(java.lang.Object)
{
java.util.LinkedHashMap v;
org.apache.kafkaesqueesque.common.cache.LRUCache v;
java.lang.Object v, v;
boolean v;
v := @this: org.apache.kafkaesqueesque.common.cache.LRUCache;
v := @parameter: java.lang.Object;
v = v.<org.apache.kafkaesqueesque.common.cache.LRUCache: java.util.LinkedHashMap cache>;
v = virtualinvoke v.<java.util.LinkedHashMap: java.lang.Object remove(java.lang.Object)>(v);
if v == null goto label;
v = 1;
goto label;
label:
v = 0;
label:
return v;
}
public long size()
{
int v;
java.util.LinkedHashMap v;
org.apache.kafkaesqueesque.common.cache.LRUCache v;
v := @this: org.apache.kafkaesqueesque.common.cache.LRUCache;
v = v.<org.apache.kafkaesqueesque.common.cache.LRUCache: java.util.LinkedHashMap cache>;
v = virtualinvoke v.<java.util.LinkedHashMap: int size()>();
return v;
}
}