T
- @ExperimentalApi public final class RestList<T> extends RestObject implements PageResponse<T>, List<T>, NavigationAware
Modifier and Type | Class and Description |
---|---|
static class |
RestList.Builder<T> |
RestObject.Properties
jsonProperties
Modifier | Constructor and Description |
---|---|
protected |
RestList() |
Modifier and Type | Method and Description |
---|---|
void |
add(int index,
T element) |
boolean |
add(Object o) |
boolean |
addAll(Collection c) |
boolean |
addAll(int index,
Collection<? extends T> c) |
void |
clear() |
boolean |
contains(Object o) |
boolean |
containsAll(Collection<?> c) |
static <T> RestList<T> |
createRestList(PageRequest request,
List<T> results,
boolean hasMore)
Deprecated.
|
static <T> RestList<T> |
createRestList(PageRequest pageRequest,
PageResponse<T> pageResponse)
Deprecated.
|
static <T> RestList<T> |
createRestList(PageResponse<T> pageResponse)
Deprecated.
|
boolean |
equals(Object obj) |
T |
get(int index) |
PageRequest |
getPageRequest() |
PageResponse<T> |
getPageResponse() |
List<T> |
getResults() |
int |
hashCode() |
boolean |
hasMore()
Indicates whether the source has more results after this page.
|
int |
indexOf(Object o) |
boolean |
isEmpty() |
Iterator<T> |
iterator() |
int |
lastIndexOf(Object o) |
ListIterator<T> |
listIterator() |
ListIterator<T> |
listIterator(int index) |
static <T> RestList.Builder<T> |
newRestList() |
static <T> RestList.Builder<T> |
newRestList(PageRequest pageRequest) |
static <T> RestList.Builder<T> |
newRestList(PageResponse<T> response) |
T |
remove(int index) |
boolean |
remove(Object o) |
boolean |
removeAll(Collection<?> c) |
Navigation.Builder |
resolveNavigation(NavigationService navigationService) |
boolean |
retainAll(Collection<?> c) |
T |
set(int index,
T element) |
int |
size() |
List<T> |
subList(int fromIndex,
int toIndex) |
Object[] |
toArray() |
Object[] |
toArray(Object[] a) |
String |
toString() |
getProperties, getProperty, hasProperty, putProperties, putProperty, putProperty
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
replaceAll, sort, spliterator
parallelStream, removeIf, stream
public static <T> RestList.Builder<T> newRestList(PageRequest pageRequest)
public static <T> RestList.Builder<T> newRestList(PageResponse<T> response)
public static <T> RestList.Builder<T> newRestList()
@Deprecated public static <T> RestList<T> createRestList(PageResponse<T> pageResponse)
#newRestList(com.atlassian.confluence.api.model.pagination.PageResponse)}
@Deprecated public static <T> RestList<T> createRestList(PageRequest pageRequest, PageResponse<T> pageResponse)
#newRestList(com.atlassian.confluence.api.model.pagination.PageResponse)}
@Deprecated public static <T> RestList<T> createRestList(PageRequest request, List<T> results, boolean hasMore)
#newRestList()}
public PageRequest getPageRequest()
getPageRequest
in interface PageResponse<T>
public PageResponse<T> getPageResponse()
public Navigation.Builder resolveNavigation(NavigationService navigationService)
resolveNavigation
in interface NavigationAware
public Object[] toArray()
public boolean add(Object o)
public boolean remove(Object o)
public boolean containsAll(Collection<?> c)
containsAll
in interface Collection<T>
containsAll
in interface List<T>
public boolean addAll(int index, Collection<? extends T> c)
public boolean addAll(Collection c)
public boolean removeAll(Collection<?> c)
public boolean retainAll(Collection<?> c)
public void clear()
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 List<T> getResults()
getResults
in interface PageResponse<T>
public int size()
size
in interface PageResponse<T>
size
in interface Collection<T>
size
in interface List<T>
public boolean isEmpty()
public boolean contains(Object o)
public boolean hasMore()
PageResponse
hasMore
in interface PageResponse<T>
public boolean equals(Object obj)
Copyright © 2003–2016 Atlassian. All rights reserved.