T - generic for object type to be cahced.public class CacheCollection<T> extends AbstractCollection<T>
N.B. this implements only the backing cache of adding, removing, etc. elements. The cache object retrieval should be implemented in the derived class.
See for example ByteArrayCache.
| Constructor and Description |
|---|
CacheCollection() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(T recoveredObject) |
protected void |
cleanup() |
void |
clear() |
boolean |
contains(Object object) |
Iterator<T> |
iterator() |
boolean |
remove(Object o) |
int |
size() |
addAll, containsAll, isEmpty, removeAll, retainAll, toArray, toArray, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitequals, hashCode, parallelStream, removeIf, spliterator, streampublic boolean add(T recoveredObject)
add in interface Collection<T>add in class AbstractCollection<T>public void clear()
clear in interface Collection<T>clear in class AbstractCollection<T>public boolean contains(Object object)
contains in interface Collection<T>contains in class AbstractCollection<T>public Iterator<T> iterator()
iterator in interface Iterable<T>iterator in interface Collection<T>iterator in class AbstractCollection<T>public boolean remove(Object o)
remove in interface Collection<T>remove in class AbstractCollection<T>public int size()
size in interface Collection<T>size in class AbstractCollection<T>protected void cleanup()
Copyright © 2020 GSI Helmholtzzentrum für Schwerionenforschung GmbH. All rights reserved.