public class ConsecutiveIntegersSequence extends BoundedSequence<Integer>
LAMBDA_SEED_HINTL_NEGATIVE_INDICES, L_UNBOUNDED, NEGATIVE_INDICES, UNBOUNDED| Constructor and Description |
|---|
ConsecutiveIntegersSequence() |
ConsecutiveIntegersSequence(ConsecutiveIntegersSequence src) |
ConsecutiveIntegersSequence(int first) |
ConsecutiveIntegersSequence(int first,
int step) |
ConsecutiveIntegersSequence(int first,
int step,
int end) |
| Modifier and Type | Method and Description |
|---|---|
static ConsecutiveIntegersSequence |
consecutiveIntegers()
Generates consecutive integers.
|
static ConsecutiveIntegersSequence |
consecutiveIntegers(int first)
Generates consecutive integers.
|
static ConsecutiveIntegersSequence |
consecutiveIntegers(int first,
int step)
Generates consecutive integers.
|
static ConsecutiveIntegersSequence |
consecutiveIntegers(int first,
int step,
int end)
Generates consecutive integers.
|
long |
length()
Number of elements that can be accessed through
Sequence.value(long);
negative if sequence is unbounded or allows negative indices. |
RandomIntegersGenerator.Template |
random() |
FlTemplate<Integer> |
random(Distribution distribution,
long seed) |
StringBuilder |
toString(StringBuilder sb) |
Integer |
value(long n)
Returns the nth element.
|
isUnbounded, negativeIndices, randomSeedHinttoStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitalternateWith, first, fluentData, getValueType, map, map, newGenerator, peek, random, random, repeat, shuffle, sorted, split, split, stream, 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, min, toLongpublic ConsecutiveIntegersSequence()
public ConsecutiveIntegersSequence(int first)
public ConsecutiveIntegersSequence(int first,
int step)
public ConsecutiveIntegersSequence(int first,
int step,
int end)
public ConsecutiveIntegersSequence(ConsecutiveIntegersSequence src)
public static ConsecutiveIntegersSequence consecutiveIntegers()
public static ConsecutiveIntegersSequence consecutiveIntegers(int first)
first - public static ConsecutiveIntegersSequence consecutiveIntegers(int first, int step)
first - step - public static ConsecutiveIntegersSequence consecutiveIntegers(int first, int step, int end)
first - step - end - public long length()
SequenceLengthSequence.value(long);
negative if sequence is unbounded or allows negative indices.public Integer value(long n)
Sequencepublic RandomIntegersGenerator.Template random()
public FlTemplate<Integer> random(Distribution distribution, long seed)
public StringBuilder toString(StringBuilder sb)
Copyright © 2019. All rights reserved.