protected abstract static class CountingEvictor.ProtectedBuilder<B extends CountingEvictor.ProtectedBuilder<B>> extends RecencyEvictor.ProtectedBuilder<B>
| Modifier and Type | Field and Description |
|---|---|
static int |
DEFAULT_EVICT_BEFORE_ADD_COUNT |
protected int |
evictBeforeAddCount_ |
capacity_, DEFAULT_CAPACITY, DEFAULT_LOAD_FACTOR, loadFactor_| Modifier | Constructor and Description |
|---|---|
protected |
ProtectedBuilder() |
| Modifier and Type | Method and Description |
|---|---|
<E> Evictor<E> |
build() |
protected abstract B |
convertThis() |
B |
evictBeforeAddCount(int evictBeforeAddCount)
The number of times an element must be added so that it is not
evicted immediately.
|
capacity, loadFactorpublic static final int DEFAULT_EVICT_BEFORE_ADD_COUNT
protected int evictBeforeAddCount_
public B evictBeforeAddCount(int evictBeforeAddCount) throws IllegalArgumentException
If not provided, defaults to DEFAULT_EVICT_BEFORE_ADD_COUNT.
evictBeforeAddCount - The number of times an element must be added so that it is
not evicted immediately.IllegalArgumentException - When the argument is negative.public <E> Evictor<E> build()
build in class RecencyEvictor.ProtectedBuilder<B extends CountingEvictor.ProtectedBuilder<B>>protected abstract B convertThis()
convertThis in class RecencyEvictor.ProtectedBuilder<B extends CountingEvictor.ProtectedBuilder<B>>Copyright © 2011–2024 Live Ontologies Project. All rights reserved.