public class EagerValues<T> extends AbstractValues<T>
modCountLAMBDA_SEED_HINTL_NEGATIVE_INDICES, L_UNBOUNDED, NEGATIVE_INDICES, UNBOUNDED| Modifier | Constructor and Description |
|---|---|
protected |
EagerValues(Class<T> valueType,
Collection<T> values,
Collection<? extends T> moreValues) |
protected |
EagerValues(Class<T> valueType,
Collection<T> initial,
DataSource<? extends T> values,
int length) |
|
EagerValues(DataSource<? extends T> values,
int length) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
_add(DataSource<? extends T> values,
int length) |
protected void |
_add(T value) |
protected void |
_addAll(Collection<T> values) |
static <T> EagerValues<T> |
all(DataSource<T> values)
Fetches elements from
values,
until it throws a GeneratorException. |
static <T> EagerValues<T> |
first(Generator<Integer> n,
DataSource<T> values)
Fetches the next
n elements from values. |
static <T> EagerValues<T> |
first(int n,
DataSource<T> values)
Fetches the next
n elements from values. |
static <T> EagerValues<T> |
firstOf(DataSource<T> values)
Fetches the next element from
values. |
T |
get(int index) |
static <T> EagerValues<T> |
next(Generator<Integer> n,
DataSource<T> values)
Fetches the next
n elements from values. |
static <T> EagerValues<T> |
next(int n,
DataSource<T> values)
Fetches the next
n elements from values. |
int |
size() |
FlValues<T> |
then(Collection<? extends T> moreValues) |
LazyValues<T> |
then(DataSource<? extends T> moreValues) |
EagerValues<T> |
then(int n,
DataSource<? extends T> moreValues) |
getValueType, length, then, thenAll, toArray, toArray, toObjectArray, valueadd, add, addAll, clear, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, remove, removeRange, set, subListaddAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitfluentData, streamadd, add, addAll, addAll, clear, contains, containsAll, equals, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, replaceAll, retainAll, set, sort, spliterator, subList, toArrayparallelStream, removeIfalternateWith, first, map, map, newGenerator, peek, random, random, random, random, randomSeedHint, repeat, shuffle, sorted, split, split, then, withaggregate, aggregate, alternateWith, distinct, few, filter, first, first, flatMap, many, map, mixWith, several, shuffle, snapshot, some, then, toGenerator, transform, withall, cached, fetch, one, three, transformSource, twotoGenerators, toGeneratorsisInRange, isUnbounded, min, negativeIndices, toLongpublic EagerValues(DataSource<? extends T> values, int length)
protected EagerValues(Class<T> valueType, Collection<T> initial, DataSource<? extends T> values, int length)
protected EagerValues(Class<T> valueType, Collection<T> values, Collection<? extends T> moreValues)
public static <T> EagerValues<T> first(int n, DataSource<T> values)
n elements from values.T - n - values - public static <T> EagerValues<T> first(Generator<Integer> n, DataSource<T> values)
n elements from values.T - n - values - public static <T> EagerValues<T> firstOf(DataSource<T> values)
values.T - values - public static <T> EagerValues<T> next(int n, DataSource<T> values)
n elements from values.T - n - values - public static <T> EagerValues<T> next(Generator<Integer> n, DataSource<T> values)
n elements from values.T - n - values - public static <T> EagerValues<T> all(DataSource<T> values)
values,
until it throws a GeneratorException.T - values - protected void _add(T value)
protected void _add(DataSource<? extends T> values, int length)
protected void _addAll(Collection<T> values)
public T get(int index)
public int size()
size in interface Collection<T>size in interface List<T>size in class AbstractCollection<T>public LazyValues<T> then(DataSource<? extends T> moreValues)
public EagerValues<T> then(int n, DataSource<? extends T> moreValues)
public FlValues<T> then(Collection<? extends T> moreValues)
Copyright © 2019. All rights reserved.