public interface CollectionResource<T extends Resource> extends Resource, java.lang.Iterable<T>
CollectionResource is a first-class Resource that contains a collection of
other Resource instances.| Modifier and Type | Method and Description |
|---|---|
T |
single()
This is just a convenience method to retrieve the single element expected to exist in this collection.
|
java.util.stream.Stream<T> |
stream()
Returns a sequential
Stream with this collection as its source. |
getResourceHref, setResourceHrefT single()
This method is not backed by any specific property obtained from the backend, as already mentioned, this is a convenience method.
java.lang.IllegalStateException - if this list contains either zero or more than one element.java.util.stream.Stream<T> stream()
Stream with this collection as its source.Stream over the elements in this resourceCopyright © 2017-2021 Okta. All Rights Reserved.