(int capacity)
| 14 | Map<Integer, Node> map; |
| 15 | |
| 16 | public LRUCache(int capacity) { |
| 17 | map = new HashMap(capacity); |
| 18 | this.capacity = capacity; |
| 19 | head.next = tail; |
| 20 | tail.prev = head; |
| 21 | } |
| 22 | |
| 23 | public int get(int key) { |
| 24 | int result = -1; |
nothing calls this directly
no outgoing calls
no test coverage detected