public abstract class PersistableItemsContainer<T extends PersistableItem> extends Object
| Constructor and Description |
|---|
PersistableItemsContainer() |
| Modifier and Type | Method and Description |
|---|---|
T |
addElement(T element)
add a new element, throw a RuntimeException if the element already exists
|
protected abstract boolean |
checkContainerForSyncState()
calculate the container's state, check if it is sync
|
boolean |
checkForSyncState() |
protected abstract boolean |
containsElement(List<T> elems,
T elem) |
protected abstract void |
fireContainerChanged(SyncState oldState,
SyncState newState) |
List<T> |
getElements() |
protected abstract List<T> |
resolveElements()
Resolve and initialize the appropriate elements from the underlying
QueryResult JsonObject.
|
protected abstract void fireContainerChanged(SyncState oldState, SyncState newState)
protected abstract boolean checkContainerForSyncState()
protected abstract List<T> resolveElements()
protected abstract boolean containsElement(List<T> elems, T elem)
elems - elem - public T addElement(T element)
element - public boolean checkForSyncState()
Copyright © 2016. All rights reserved.