public final class Page<T> extends Object implements List<T>
Contains a reference to the paging state object that describes the position of the page in some overall results.
| Constructor and Description |
|---|
Page(List<T> wrapped,
PageContext pageContext,
long totalSize) |
| Modifier and Type | Method and Description |
|---|---|
void |
add(int index,
T element) |
boolean |
add(T t) |
boolean |
addAll(Collection<? extends T> c) |
boolean |
addAll(int index,
Collection<? extends T> c) |
void |
clear() |
boolean |
contains(Object o) |
boolean |
containsAll(Collection<?> c) |
boolean |
equals(Object o) |
void |
forEach(Consumer<? super T> action) |
T |
get(int index) |
PageContext |
getPageContext() |
long |
getTotalSize() |
int |
hashCode() |
int |
indexOf(Object o) |
boolean |
isEmpty() |
Iterator<T> |
iterator() |
int |
lastIndexOf(Object o) |
ListIterator<T> |
listIterator() |
ListIterator<T> |
listIterator(int index) |
Stream<T> |
parallelStream() |
T |
remove(int index) |
boolean |
remove(Object o) |
boolean |
removeAll(Collection<?> c) |
boolean |
removeIf(Predicate<? super T> filter) |
void |
replaceAll(UnaryOperator<T> operator) |
boolean |
retainAll(Collection<?> c) |
T |
set(int index,
T element) |
int |
size() |
void |
sort(Comparator<? super T> c) |
Spliterator<T> |
spliterator() |
Stream<T> |
stream() |
List<T> |
subList(int fromIndex,
int toIndex) |
Object[] |
toArray() |
<T1> T1[] |
toArray(T1[] a) |
public Page(List<T> wrapped, PageContext pageContext, long totalSize)
public PageContext getPageContext()
public long getTotalSize()
public boolean add(T t)
public boolean addAll(Collection<? extends T> c)
public boolean addAll(int index,
Collection<? extends T> c)
public void clear()
public boolean contains(Object o)
public boolean containsAll(Collection<?> c)
containsAll in interface Collection<T>containsAll in interface List<T>public boolean equals(Object o)
public int hashCode()
public boolean isEmpty()
public int lastIndexOf(Object o)
lastIndexOf in interface List<T>public ListIterator<T> listIterator()
listIterator in interface List<T>public ListIterator<T> listIterator(int index)
listIterator in interface List<T>public boolean remove(Object o)
public boolean removeAll(Collection<?> c)
public void replaceAll(UnaryOperator<T> operator)
replaceAll in interface List<T>public boolean retainAll(Collection<?> c)
public int size()
public void sort(Comparator<? super T> c)
public Spliterator<T> spliterator()
spliterator in interface Iterable<T>spliterator in interface Collection<T>spliterator in interface List<T>public Object[] toArray()
public <T1> T1[] toArray(T1[] a)
public Stream<T> parallelStream()
parallelStream in interface Collection<T>public boolean removeIf(Predicate<? super T> filter)
removeIf in interface Collection<T>public Stream<T> stream()
stream in interface Collection<T>Copyright © 2015 Red Hat, Inc.. All rights reserved.