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) |
Resources<T> |
withPagination(Pagination pagination) |
getLinks, with, withprotected 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)