public boolean removeTail ( ) { CacheItem < K , V > tail = null ; if ( _capacity1 <= _size1 ) tail = _tail1 ; if ( tail == null ) { tail = _tail2 ; if ( tail == null ) { tail = _tail1 ; if ( tail == null ) return false ; } } V oldValue = tail . _value ; if ( oldValue instanceof LruListener ) { ( ( LruListener ) oldValue ) . lruEvent ( ) ; } V value = remove ( tail . _key ) ; return true ; }
Remove the last item in the LRU