code: private E evict() {
          switch (evictPolicy) {
              case EVICT_OLDEST:
                  return deque.pollFirst();
              case EVICT_NEWEST:
                  return deque.pollLast();
              default:
                  throw new IllegalStateException("Illegal evict policy: " + evictPolicy);
          }
  
      }
docs: Evicts an element, depending on the configured {@link EvictPolicy}.
  
  @return the evicted element