E - type of collection elementspublic class PageableList<E> extends Object implements List<E>
| Constructor and Description |
|---|
PageableList()
Creates empty list with no next page.
|
PageableList(List<E> items,
Paging paging)
Creates list wrapping provided items and next page.
|
PageableList(List<E> items,
Paging paging,
Map<String,String> links)
Creates list wrapping provided items, next page and links.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(E e) |
void |
add(int index,
E element) |
boolean |
addAll(Collection<? extends E> c) |
boolean |
addAll(int index,
Collection<? extends E> c) |
void |
clear() |
boolean |
contains(Object o) |
boolean |
containsAll(Collection<?> c) |
E |
get(int index) |
Map<String,String> |
getLinks()
Returns map of links.
|
Page |
getNextPage()
Returns description of the next page.
|
Paging |
getPaging()
Returns description of the current collection page.
|
boolean |
hasNextPage()
Signals whether there are more subsequent pages or the last page has been reached
|
int |
indexOf(Object o) |
boolean |
isEmpty() |
Iterator<E> |
iterator() |
int |
lastIndexOf(Object o) |
ListIterator<E> |
listIterator() |
ListIterator<E> |
listIterator(int index) |
E |
remove(int index) |
boolean |
remove(Object o) |
boolean |
removeAll(Collection<?> c) |
boolean |
retainAll(Collection<?> c) |
E |
set(int index,
E element) |
int |
size() |
List<E> |
subList(int fromIndex,
int toIndex) |
Object[] |
toArray() |
<T> T[] |
toArray(T[] a) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitequals, hashCode, replaceAll, sort, spliteratorparallelStream, removeIf, streampublic PageableList()
public PageableList(List<E> items, Paging paging)
items - to be wrappedpaging - page description, might be nullpublic Page getNextPage()
nullpublic boolean hasNextPage()
public Map<String,String> getLinks()
nullpublic Paging getPaging()
nullpublic int size()
public boolean isEmpty()
public boolean contains(Object o)
public Object[] toArray()
public <T> T[] toArray(T[] a)
public boolean add(E e)
public boolean remove(Object o)
public boolean containsAll(Collection<?> c)
containsAll in interface Collection<E>containsAll in interface List<E>public boolean addAll(Collection<? extends E> c)
public boolean addAll(int index,
Collection<? extends E> c)
public boolean removeAll(Collection<?> c)
public boolean retainAll(Collection<?> c)
public void clear()
public int lastIndexOf(Object o)
lastIndexOf in interface List<E>public ListIterator<E> listIterator()
listIterator in interface List<E>public ListIterator<E> listIterator(int index)
listIterator in interface List<E>Copyright © 2017. All Rights Reserved.