private void evict() { int removalSize = getRemovalSize(); if (removalSize < 1) { return; } evictor.removeSize(removalSize, this); }
private int getRemovalSize() { final int size = size(); if (size < 1) { return 0; } int removalSize = evictor.findRemovalSize(this); if (removalSize < 1) { return 0; } return removalSize; }
private boolean checkEvictionPossible() { Evictor evictor = getEvictor(); EvictionChecker evictionChecker = evictor.getEvictionChecker(); return evictionChecker.checkEvictionPossible(this); }