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>
AnObjectStorewhich wraps aCollectionand 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 booleanadd(O object, QueryOptions queryOptions)booleanaddAll(Collection<? extends O> c, QueryOptions queryOptions)voidclear(QueryOptions queryOptions)booleancontains(Object o, QueryOptions queryOptions)booleancontainsAll(Collection<?> c, QueryOptions queryOptions)Collection<O>getBackingCollection()booleanisEmpty(QueryOptions queryOptions)CloseableIterator<O>iterator(QueryOptions queryOptions)booleanremove(Object o, QueryOptions queryOptions)booleanremoveAll(Collection<?> c, QueryOptions queryOptions)booleanretainAll(Collection<?> c, QueryOptions queryOptions)intsize(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:
sizein interfaceObjectStore<O>
-
contains
public boolean contains(Object o, QueryOptions queryOptions)
- Specified by:
containsin interfaceObjectStore<O>
-
iterator
public CloseableIterator<O> iterator(QueryOptions queryOptions)
- Specified by:
iteratorin interfaceObjectStore<O>
-
isEmpty
public boolean isEmpty(QueryOptions queryOptions)
- Specified by:
isEmptyin interfaceObjectStore<O>
-
add
public boolean add(O object, QueryOptions queryOptions)
- Specified by:
addin interfaceObjectStore<O>
-
remove
public boolean remove(Object o, QueryOptions queryOptions)
- Specified by:
removein interfaceObjectStore<O>
-
containsAll
public boolean containsAll(Collection<?> c, QueryOptions queryOptions)
- Specified by:
containsAllin interfaceObjectStore<O>
-
addAll
public boolean addAll(Collection<? extends O> c, QueryOptions queryOptions)
- Specified by:
addAllin interfaceObjectStore<O>
-
retainAll
public boolean retainAll(Collection<?> c, QueryOptions queryOptions)
- Specified by:
retainAllin interfaceObjectStore<O>
-
removeAll
public boolean removeAll(Collection<?> c, QueryOptions queryOptions)
- Specified by:
removeAllin interfaceObjectStore<O>
-
clear
public void clear(QueryOptions queryOptions)
- Specified by:
clearin interfaceObjectStore<O>
-
-