Class CollectionWrappingObjectStore<O>
- java.lang.Object
-
- com.googlecode.cqengine.persistence.support.CollectionWrappingObjectStore<O>
-
- All Implemented Interfaces:
ObjectStore<O>
- Direct Known Subclasses:
ConcurrentOnHeapObjectStore
public class CollectionWrappingObjectStore<O> extends Object implements ObjectStore<O>
AnObjectStore
which wraps aCollection
and delegates all method calls to the collection.- Author:
- niall.gallagher
-
-
Constructor Summary
Constructors Constructor Description CollectionWrappingObjectStore(Collection<O> backingCollection)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
add(O object, QueryOptions queryOptions)
boolean
addAll(Collection<? extends O> c, QueryOptions queryOptions)
void
clear(QueryOptions queryOptions)
boolean
contains(Object o, QueryOptions queryOptions)
boolean
containsAll(Collection<?> c, QueryOptions queryOptions)
Collection<O>
getBackingCollection()
boolean
isEmpty(QueryOptions queryOptions)
CloseableIterator<O>
iterator(QueryOptions queryOptions)
boolean
remove(Object o, QueryOptions queryOptions)
boolean
removeAll(Collection<?> c, QueryOptions queryOptions)
boolean
retainAll(Collection<?> c, QueryOptions queryOptions)
int
size(QueryOptions queryOptions)
-
-
-
Constructor Detail
-
CollectionWrappingObjectStore
public CollectionWrappingObjectStore(Collection<O> backingCollection)
-
-
Method Detail
-
getBackingCollection
public Collection<O> getBackingCollection()
-
size
public int size(QueryOptions queryOptions)
- Specified by:
size
in interfaceObjectStore<O>
-
contains
public boolean contains(Object o, QueryOptions queryOptions)
- Specified by:
contains
in interfaceObjectStore<O>
-
iterator
public CloseableIterator<O> iterator(QueryOptions queryOptions)
- Specified by:
iterator
in interfaceObjectStore<O>
-
isEmpty
public boolean isEmpty(QueryOptions queryOptions)
- Specified by:
isEmpty
in interfaceObjectStore<O>
-
add
public boolean add(O object, QueryOptions queryOptions)
- Specified by:
add
in interfaceObjectStore<O>
-
remove
public boolean remove(Object o, QueryOptions queryOptions)
- Specified by:
remove
in interfaceObjectStore<O>
-
containsAll
public boolean containsAll(Collection<?> c, QueryOptions queryOptions)
- Specified by:
containsAll
in interfaceObjectStore<O>
-
addAll
public boolean addAll(Collection<? extends O> c, QueryOptions queryOptions)
- Specified by:
addAll
in interfaceObjectStore<O>
-
retainAll
public boolean retainAll(Collection<?> c, QueryOptions queryOptions)
- Specified by:
retainAll
in interfaceObjectStore<O>
-
removeAll
public boolean removeAll(Collection<?> c, QueryOptions queryOptions)
- Specified by:
removeAll
in interfaceObjectStore<O>
-
clear
public void clear(QueryOptions queryOptions)
- Specified by:
clear
in interfaceObjectStore<O>
-
-