Package com.redhat.cloud.common.pager
Class Page<T>
- java.lang.Object
-
- com.redhat.cloud.common.pager.Page<T>
-
- All Implemented Interfaces:
Iterable<T>,Collection<T>,List<T>
public class Page<T> extends Object implements List<T>
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadd(int i, T t)booleanadd(T t)booleanaddAll(int i, Collection<? extends T> collection)booleanaddAll(Collection<? extends T> collection)voidclear()booleancontains(Object o)@javax.validation.constraints.NotNull booleancontainsAll(Collection<?> collection)Tget(int i)PagergetPager()longgetTotalCount()intindexOf(Object o)booleanisEmpty()@NotNull Iterator<T>iterator()intlastIndexOf(Object o)@NotNull ListIterator<T>listIterator()@NotNull ListIterator<T>listIterator(int i)Tremove(int i)booleanremove(Object o)booleanremoveAll(Collection<?> collection)booleanretainAll(Collection<?> collection)Tset(int i, T t)intsize()@NotNull List<T>subList(int i, int j)@NotNull Object[]toArray()<T1> @NotNull T1[]toArray(T1[] t1s)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArray
-
Methods inherited from interface java.util.List
equals, hashCode, replaceAll, sort, spliterator
-
-
-
-
Method Detail
-
getPager
public Pager getPager()
-
getTotalCount
public long getTotalCount()
-
size
public int size()
-
isEmpty
public boolean isEmpty()
-
contains
public boolean contains(Object o)
-
toArray
@NotNull public @NotNull Object[] toArray()
-
toArray
@NotNull public <T1> @NotNull T1[] toArray(T1[] t1s)
-
add
public boolean add(T t)
-
remove
public boolean remove(Object o)
-
containsAll
@NotNull public @javax.validation.constraints.NotNull boolean containsAll(Collection<?> collection)
- Specified by:
containsAllin interfaceCollection<T>- Specified by:
containsAllin interfaceList<T>
-
addAll
public boolean addAll(Collection<? extends T> collection)
-
addAll
public boolean addAll(int i, Collection<? extends T> collection)
-
removeAll
public boolean removeAll(Collection<?> collection)
-
retainAll
public boolean retainAll(Collection<?> collection)
-
clear
public void clear()
-
lastIndexOf
public int lastIndexOf(Object o)
- Specified by:
lastIndexOfin interfaceList<T>
-
listIterator
@NotNull public @NotNull ListIterator<T> listIterator()
- Specified by:
listIteratorin interfaceList<T>
-
listIterator
@NotNull public @NotNull ListIterator<T> listIterator(int i)
- Specified by:
listIteratorin interfaceList<T>
-
-