Package io.tesler.api.data
Class ResultPage<T>
- java.lang.Object
-
- io.tesler.api.data.ResultPage<T>
-
- All Implemented Interfaces:
IDataContainer<T>
,Iterable<T>
public class ResultPage<T> extends Object implements Iterable<T>, IDataContainer<T>
-
-
Constructor Summary
Constructors Constructor Description ResultPage()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
forEach(Consumer<? super T> action)
Iterator<T>
iterator()
static <T,E>
ResultPage<T>of(ResultPage<E> data, Function<E,T> converter)
static <T,E>
ResultPage<T>of(Iterable<E> data, Function<E,T> converter, boolean hasNext)
static <T> ResultPage<T>
of(Iterable<T> data, boolean hasNext)
static <T,E>
ResultPage<T>of(List<E> data, Function<E,T> converter, boolean hasNext)
static <T> ResultPage<T>
of(List<T> data, boolean hasNext)
static <T> ResultPage<T>
of(List<T> data, int maxItems)
static <T> ResultPage<T>
of(List<T> data, PageSpecification page)
Spliterator<T>
spliterator()
void
transformData(Function<T,T> function)
-
-
-
Method Detail
-
of
public static <T> ResultPage<T> of(List<T> data, PageSpecification page)
-
of
public static <T> ResultPage<T> of(List<T> data, int maxItems)
-
of
public static <T> ResultPage<T> of(List<T> data, boolean hasNext)
-
of
public static <T> ResultPage<T> of(Iterable<T> data, boolean hasNext)
-
of
public static <T,E> ResultPage<T> of(List<E> data, Function<E,T> converter, boolean hasNext)
-
of
public static <T,E> ResultPage<T> of(Iterable<E> data, Function<E,T> converter, boolean hasNext)
-
of
public static <T,E> ResultPage<T> of(ResultPage<E> data, Function<E,T> converter)
-
spliterator
public Spliterator<T> spliterator()
- Specified by:
spliterator
in interfaceIterable<T>
-
transformData
public void transformData(Function<T,T> function)
- Specified by:
transformData
in interfaceIDataContainer<T>
-
-