E - The type of the elements.public class RecencyEvictor<E> extends AbstractEvictor<E>
| Modifier and Type | Class and Description |
|---|---|
static class |
RecencyEvictor.Builder |
protected static class |
RecencyEvictor.ProtectedBuilder<B extends RecencyEvictor.ProtectedBuilder<B>> |
protected class |
RecencyEvictor.Stats |
stats| Modifier and Type | Method and Description |
|---|---|
void |
add(E element)
Add the provided element.
|
Iterator<E> |
evict(com.google.common.base.Predicate<E> retain)
Return elements that are evicted.
|
int |
getCapacity() |
void |
setCapacity(int capacity) |
int |
size() |
addAndEvict, addAndEvict, evict, getStatspublic void add(E element)
Evictorelement - The added element.public Iterator<E> evict(com.google.common.base.Predicate<E> retain)
Evictorretain returns true.retain - A Predicate that is true for elements that
should be retained.public int getCapacity()
public void setCapacity(int capacity)
public int size()
Copyright © 2011–2024 Live Ontologies Project. All rights reserved.