public interface IDataState
Modifier and Type | Interface and Description |
---|---|
static interface |
IDataState.Hashing
Returns the hash code or key for the given object.
|
Modifier and Type | Method and Description |
---|---|
boolean |
contains(Object key)
Returns true, if a dirty version of the given object is available.
|
boolean |
empty()
Returns true if the cache is empty.
|
Object |
get(Object key)
Returns the dirty version of the object if available.
|
void |
invalidate(Object key)
Invalidates the object with the given key.
|
void |
register(Object key,
Object object)
Registers the given object by the passed key.
|
void |
registerAll(Collection<Object> objects,
IDataState.Hashing hasher)
Registers all objects provided by the collection.
|
long |
size()
Returns the size of the cached objects.
|
long size()
boolean empty()
boolean contains(Object key)
key
- the keyObject get(Object key)
key
- the keyvoid register(Object key, Object object)
key
- the keyobject
- the objectvoid registerAll(Collection<Object> objects, IDataState.Hashing hasher)
objects
- the objectshasher
- the hashervoid invalidate(Object key)
key
- the keyCopyright © 2013-2016 Loetz GmbH&Co.KG - Heidelberg - Germany, Eclipse OSBP Project, OS.bee