public class Resources<T> extends LinkContainer<Resources<T>> implements net.nemerosa.ontrack.model.structure.ViewSupplier
| Modifier | Constructor and Description |
|---|---|
protected |
Resources(java.util.Collection<T> resources,
java.net.URI self,
Pagination pagination,
java.lang.Class<?> viewType) |
| Modifier and Type | Method and Description |
|---|---|
Resources<T> |
forView(java.lang.Class<?> viewType) |
static <R> Resources<R> |
of(java.util.Collection<R> resources,
java.net.URI href) |
static <R> Resources<R> |
of(java.util.stream.Stream<R> resources,
java.net.URI href) |
<V> Resources<V> |
transform(java.util.function.Function<T,V> fn)
Creates a new
Resources object by transforming the elements in the underlying collection. |
Resources<T> |
withPagination(Pagination pagination) |
getLinks, with, with, withLinksprotected Resources(java.util.Collection<T> resources, java.net.URI self, Pagination pagination, java.lang.Class<?> viewType)
public static <R> Resources<R> of(java.util.stream.Stream<R> resources, java.net.URI href)
public static <R> Resources<R> of(java.util.Collection<R> resources, java.net.URI href)
public Resources<T> withPagination(Pagination pagination)