public abstract class AbstractValues<T> extends AbstractList<T> implements FlValues<T>, RandomAccess
Values implementations.modCountLAMBDA_SEED_HINTL_NEGATIVE_INDICES, L_UNBOUNDED, NEGATIVE_INDICES, UNBOUNDED| Constructor and Description |
|---|
AbstractValues(Class<T> valueType) |
| Modifier and Type | Method and Description |
|---|---|
Class<T> |
getValueType()
Returns the type of values produced/contained by this instance.
|
long |
length()
Number of elements that can be accessed through
Sequence.value(long);
negative if sequence is unbounded or allows negative indices. |
FlValues<T> |
then(Generator<Integer> n,
DataSource<? extends T> moreValues) |
LazyValues<T> |
thenAll(DataSource<? extends T>... moreValues) |
T[] |
toArray()
Creates an array using the
value type of the source.
|
<A> A[] |
toArray(Class<A> clazz) |
Object[] |
toObjectArray()
Alias for
List.toArray() |
T |
value(long n)
Returns the nth element.
|
add, add, addAll, clear, equals, get, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, remove, removeRange, set, subListaddAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, size, toArray, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitfluentData, stream, then, then, thenadd, add, addAll, addAll, clear, contains, containsAll, equals, get, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, replaceAll, retainAll, set, size, 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<T> thenAll(DataSource<? extends T>... moreValues)
public <A> A[] toArray(Class<A> clazz)
toArray in interface Values<T>List.toArray(Object[])public T[] toArray()
Valuespublic Object[] toObjectArray()
ValuesList.toArray()toObjectArray in interface Values<T>public long length()
SequenceLengthSequence.value(long);
negative if sequence is unbounded or allows negative indices.length in interface SequenceLengthpublic Class<T> getValueType()
Typednull if the type is unknown;
should never return a primitive type.getValueType in interface FlDataSource<T>getValueType in interface FlSequence<T>getValueType in interface FlTemplate<T>getValueType in interface Typed<T>Copyright © 2019. All rights reserved.