T - The type of the elements in the returned list.@Value.Immutable public interface ListResult<T> extends Iterable<T>
| Modifier and Type | Interface and Description |
|---|---|
static class |
ListResult.Builder<T> |
| Modifier and Type | Method and Description |
|---|---|
static <T> Collector<T,ListResult.Builder<T>,ListResult.Builder<T>> |
collector() |
default void |
forEach(Consumer<? super T> action) |
default List<T> |
getItems() |
int |
getTotalCount() |
default Iterator<T> |
iterator() |
static <T> ListResult<T> |
of(Collection<T> items) |
static <T> ListResult<T> |
of(T... items) |
spliteratorint getTotalCount()
@Value.Default default List<T> getItems()
static <T> ListResult<T> of(Collection<T> items)
@SafeVarargs static <T> ListResult<T> of(T... items)
static <T> Collector<T,ListResult.Builder<T>,ListResult.Builder<T>> collector()
Copyright © 2016–2019 Red Hat. All rights reserved.