public class LazyValues<T> extends AbstractValues<T>
| Modifier and Type | Class and Description |
|---|---|
protected static class |
LazyValues.Fetch<T> |
modCountLAMBDA_SEED_HINTL_NEGATIVE_INDICES, L_UNBOUNDED, NEGATIVE_INDICES, UNBOUNDED| Modifier | Constructor and Description |
|---|---|
protected |
LazyValues(Class<T> valueType,
Collection<? extends T> values,
Collection<? extends T> moreValues) |
|
LazyValues(Collection<? extends T> initial,
DataSource<? extends T> values) |
protected |
LazyValues(Collection<? extends T> initial,
DataSource<? extends T> values,
Collection<? extends LazyValues.Fetch<T>> moreValues,
int n) |
|
LazyValues(Collection<? extends T> initial,
DataSource<? extends T> values,
int n) |
|
LazyValues(DataSource<? extends T> values) |
|
LazyValues(DataSource<? extends T> values,
int n) |
protected |
LazyValues(LazyValues<T> src) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
_add(Collection<? extends T> value) |
protected void |
_add(DataSource<? extends T> value) |
protected void |
_add(DataSource<? extends T> value,
int n) |
static <T> LazyValues<T> |
any(Generator<Integer> n,
DataSource<? extends T> values)
Fetches up to
n elements from values. |
static <T> LazyValues<T> |
any(int n,
DataSource<? extends T> values)
Fetches up to
n elements from values. |
T |
get(int index) |
int |
size() |
LazyValues<T> |
then(Collection<? extends T> moreValues) |
LazyValues<T> |
then(DataSource<? extends T> moreValues) |
LazyValues<T> |
then(int n,
DataSource<? extends T> moreValues) |
static <T> LazyValues<T> |
unbound(DataSource<? extends T> values)
Fetches elements from
values. |
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 LazyValues(DataSource<? extends T> values, int n)
public LazyValues(Collection<? extends T> initial, DataSource<? extends T> values, int n)
public LazyValues(DataSource<? extends T> values)
public LazyValues(Collection<? extends T> initial, DataSource<? extends T> values)
protected LazyValues(Class<T> valueType, Collection<? extends T> values, Collection<? extends T> moreValues)
protected LazyValues(Collection<? extends T> initial, DataSource<? extends T> values, Collection<? extends LazyValues.Fetch<T>> moreValues, int n)
protected LazyValues(LazyValues<T> src)
public static <T> LazyValues<T> any(int n, DataSource<? extends T> values)
n elements from values.T - n - values - public static <T> LazyValues<T> any(Generator<Integer> n, DataSource<? extends T> values)
n elements from values.T - n - values - public static <T> LazyValues<T> unbound(DataSource<? extends T> values)
values.T - values - protected void _add(DataSource<? extends T> value)
protected void _add(DataSource<? extends T> value, int n)
protected void _add(Collection<? extends T> value)
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 LazyValues<T> then(int n, DataSource<? extends T> moreValues)
public LazyValues<T> then(Collection<? extends T> moreValues)
Copyright © 2019. All rights reserved.