public interface CollectionResource<T extends Resource> extends Resource, Iterable<T>
CollectionResource is a first-class Resource that contains a collection of
other Resource instances.| Modifier and Type | Method and Description |
|---|---|
String |
getNextPageUrl()
Returns a next page URL
|
T |
single()
This is just a convenience method to retrieve the single element expected to exist in this collection.
|
Stream<T> |
stream()
Returns a sequential
Stream with this collection as its source. |
getResourceHref, setResourceHrefforEach, iterator, spliteratorT single()
This method is not backed by any specific property obtained from the backend, as already mentioned, this is a convenience method.
IllegalStateException - if this list contains either zero or more than one element.Stream<T> stream()
Stream with this collection as its source.Stream over the elements in this resourceString getNextPageUrl()
null if the current resource is the last one.Copyright © 2017–2022 Okta. All rights reserved.