private FileEntry evict() {
      if (configuration.maxEntries() > 0) {
         synchronized (entries) {
            if (entries.size() > configuration.maxEntries()) {
               Iterator<FileEntry> it = entries.values().iterator();
               FileEntry fe = it.next();
               it.remove();
               return fe;
            }
         }
      }
      return null;
   }
private FileEntry evict ( ) { if ( configuration . maxEntries ( ) > 0 ) { synchronized ( entries ) { if ( entries . size ( ) > configuration . maxEntries ( ) ) { Iterator < FileEntry > it = entries . values ( ) . iterator ( ) ; FileEntry fe = it . next ( ) ; it . remove ( ) ; return fe ; } } } return null ; }
Try to evict an entry if the capacity of the cache store is reached.

@return FileEntry to evict, or null (if unbounded or capacity is not yet reached)