E
- The type of the listpublic class AugmentedPageableList<E> extends PageableList<E>
PageableList
that can be augmented with additional data.Modifier and Type | Class and Description |
---|---|
static class |
AugmentedPageableList.AugmentationKeys
This enum provides the available augmentation keys which are used to reference augmentation
data.
|
Constructor and Description |
---|
AugmentedPageableList(List<E> myList)
Creates the augmented pageable list with the given list as back-end.
|
Modifier and Type | Method and Description |
---|---|
protected <T> PageableList<T> |
createEmptyList(Class<T> typeClass)
create a new empty list of the same type
|
<T> PageableList<T> |
createEmptyListWithMetaData(Class<T> typeClass) |
Object |
getAugmentation(AugmentedPageableList.AugmentationKeys key)
Returns augmentation data for the given key.
|
void |
setAugmentation(AugmentedPageableList.AugmentationKeys key,
Object value)
Sets the augmentation data for the given key.
|
add, add, addAll, addAll, clear, contains, containsAll, emptyList, get, getMinNumberOfAdditionalElements, getMinNumberOfElements, getOffset, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, retainAll, set, setMinNumberOfElements, setOffset, size, subList, toArray, toArray
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
equals, hashCode, replaceAll, sort, spliterator
parallelStream, removeIf, stream
protected <T> PageableList<T> createEmptyList(Class<T> typeClass)
createEmptyList
in class PageableList<E>
T
- type of the resulting classtypeClass
- the class of the resulting classpublic <T> PageableList<T> createEmptyListWithMetaData(Class<T> typeClass)
createEmptyListWithMetaData
in class PageableList<E>
T
- type of the resulting classtypeClass
- the class of the resulting classpublic Object getAugmentation(AugmentedPageableList.AugmentationKeys key)
key
- key identifying the requested datapublic void setAugmentation(AugmentedPageableList.AugmentationKeys key, Object value)
key
- key identifying the augmentation data to be setvalue
- the augmentation dataCopyright © 2019 Communote team. All rights reserved.