cache/src/main/java/org/echocat/jomon/cache/InMemoryBasedCacheSupport.java
protected void removeLast() {
        final CacheEntry<K, V> entry;
        synchronized (_lock) {
            if (_last != null) {
                entry = _entries.remove(_last.getKey());
                setLast(_last.getPrevious());
            } else {
                entry = null;
            }
            if (size() == 0) {
                _first = null;
                _last = null;
            }
        }
        if (entry != null) {
            handleRemove(entry);
        }
    }
protected void removeLast() {
        final CacheEntry<K, V> entry;
        synchronized (_lock) {
            if (_last != null) {
                entry = _entries.remove(_last.getKey());
                setLast(_last.getPrevious());
            } else {
                entry = null;
            }
            if (size() == 0) {
                _first = null;
                _last = null;
            }
        }
        if (entry != null) {
            handleRemove(entry);
        }
    }
Remove the last element from the cache.