@@ -0,0 +1,400 @@
+package com.itranswarp.bitcoin.util;%0A%0Aimport java.util.LinkedHashMap;%0Aimport java.util.Map;%0A%0Apublic class LRUCache%3CK, V%3E extends LinkedHashMap%3CK, V%3E %7B%0A%0A%09private final int size;%0A%0A%09public LRUCache() %7B%0A%09%09this(16);%0A%09%7D%0A%0A%09public LRUCache(int size) %7B%0A%09%09super(size, 0.75f, true);%0A%09%09this.size = size;%0A%09%7D%0A%0A%09@Override%0A%09protected boolean removeEldestEntry(Map.Entry%3CK, V%3E eldest) %7B%0A%09%09return size() %3E size;%0A%09%7D%0A%0A%7D%0A

add LRUCache