@Override public void remove() { if (current == null) { throw new IllegalStateException(); } cache.remove(current.getKey()); current = null; } }
@Override public boolean remove(final K key) { checkClosed(); if (key == null) { throw new NullPointerException(); } try { return jsr107Cache.remove(key); } catch (CacheWritingException e) { throw jsr107CacheWriterException(e); } }
@Override public void remove() { if (current == null) { throw new IllegalStateException(); } cache.remove(current.getKey()); current = null; } }
@Override public boolean remove(final K key) { checkClosed(); if (key == null) { throw new NullPointerException(); } try { return jsr107Cache.remove(key); } catch (CacheWritingException e) { throw jsr107CacheWriterException(e); } }