E - The type of the elements.public interface Evictor<E> extends HasStats
| Modifier and Type | Interface and Description |
|---|---|
static interface |
Evictor.Builder |
| Modifier and Type | Method and Description |
|---|---|
void |
add(E element)
Add the provided element.
|
Iterator<E> |
addAndEvict(E element)
Add the provided element and return elements that were evicted.
|
Iterator<E> |
addAndEvict(E element,
com.google.common.base.Predicate<E> retain)
Add the provided element and return elements that were evicted.
|
Iterator<E> |
evict()
Return elements that are evicted.
|
Iterator<E> |
evict(com.google.common.base.Predicate<E> retain)
Return elements that are evicted.
|
void add(E element)
element - The added element.Iterator<E> evict(com.google.common.base.Predicate<E> retain)
retain returns true.retain - A Predicate that is true for elements that
should be retained.Iterator<E> addAndEvict(E element)
element - The added element.Iterator<E> addAndEvict(E element, com.google.common.base.Predicate<E> retain)
retain returns true.element - The added element.retain - A Predicate that is true for elements that
should be retained.Copyright © 2011–2024 Live Ontologies Project. All rights reserved.