E - type of collection elementspublic class PageableList<E>
extends java.lang.Object
implements java.util.List<E>
| Constructor and Description |
|---|
PageableList()
Creates empty list with no next page.
|
PageableList(java.util.List<E> items,
Paging paging)
Creates list wrapping provided items and next page.
|
PageableList(java.util.List<E> items,
Paging paging,
java.util.Map<java.lang.String,java.lang.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(java.util.Collection<? extends E> c) |
boolean |
addAll(int index,
java.util.Collection<? extends E> c) |
void |
clear() |
boolean |
contains(java.lang.Object o) |
boolean |
containsAll(java.util.Collection<?> c) |
E |
get(int index) |
java.util.Map<java.lang.String,java.lang.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(java.lang.Object o) |
boolean |
isEmpty() |
java.util.Iterator<E> |
iterator() |
int |
lastIndexOf(java.lang.Object o) |
java.util.ListIterator<E> |
listIterator() |
java.util.ListIterator<E> |
listIterator(int index) |
E |
remove(int index) |
boolean |
remove(java.lang.Object o) |
boolean |
removeAll(java.util.Collection<?> c) |
boolean |
retainAll(java.util.Collection<?> c) |
E |
set(int index,
E element) |
int |
size() |
java.util.List<E> |
subList(int fromIndex,
int toIndex) |
java.lang.Object[] |
toArray() |
<T> T[] |
toArray(T[] a) |
public PageableList()
public PageableList(java.util.List<E> items, Paging paging)
items - to be wrappedpaging - page description, might be nullpublic Page getNextPage()
nullpublic boolean hasNextPage()
public java.util.Map<java.lang.String,java.lang.String> getLinks()
nullpublic Paging getPaging()
nullpublic int size()
public boolean isEmpty()
public boolean contains(java.lang.Object o)
public java.util.Iterator<E> iterator()
public java.lang.Object[] toArray()
public <T> T[] toArray(T[] a)
public boolean add(E e)
public boolean remove(java.lang.Object o)
public boolean containsAll(java.util.Collection<?> c)
public boolean addAll(java.util.Collection<? extends E> c)
public boolean addAll(int index,
java.util.Collection<? extends E> c)
addAll in interface java.util.List<E>public boolean removeAll(java.util.Collection<?> c)
public boolean retainAll(java.util.Collection<?> c)
public void clear()
public int indexOf(java.lang.Object o)
indexOf in interface java.util.List<E>public int lastIndexOf(java.lang.Object o)
lastIndexOf in interface java.util.List<E>public java.util.ListIterator<E> listIterator()
listIterator in interface java.util.List<E>public java.util.ListIterator<E> listIterator(int index)
listIterator in interface java.util.List<E>Copyright © 2016. All Rights Reserved.