public abstract class AbstractDataStore<V> implements DataStore<V>Abstract data store implementation.
Implements
com.google.api.client.util.store.DataStore<V>Type Parameter
| Name | Description |
| V |
Constructors
AbstractDataStore(DataStoreFactory dataStoreFactory, String id)
protected AbstractDataStore(DataStoreFactory dataStoreFactory, String id)| Name | Description |
| dataStoreFactory | DataStoreFactorydata store factory |
| id | Stringdata store ID |
Methods
containsKey(String key)
public boolean containsKey(String key)Returns whether the store contains the given key.
Default implementation is to call #get(String) and check if it is null.
| Name | Description |
| key | String |
| Type | Description |
| boolean |
| Type | Description |
| IOException |
containsValue(V value)
public boolean containsValue(V value)Returns whether the store contains the given value.
Default implementation is to call Collection#contains(Object) on #values().
| Name | Description |
| value | V |
| Type | Description |
| boolean |
| Type | Description |
| IOException |
getDataStoreFactory()
public DataStoreFactory getDataStoreFactory()Returns the data store factory.
Overriding is only supported for the purpose of calling the super implementation and changing the return type, but nothing else.
| Type | Description |
| DataStoreFactory |
getId()
public final String getId()Returns the data store ID.
| Type | Description |
| String |
isEmpty()
public boolean isEmpty()| Type | Description |
| boolean |
| Type | Description |
| IOException |
size()
public int size()Returns the number of stored keys.
Default implementation is to call Set#size() on #keySet().
| Type | Description |
| int |
| Type | Description |
| IOException |