Package net.datafaker.sequence
Class FakeSequence<T>
java.lang.Object
net.datafaker.sequence.FakeSequence<T>
- All Implemented Interfaces:
Iterable<T>
- Direct Known Subclasses:
FakeCollection
,FakeStream
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionprotected final int
protected final int
protected final double
protected final RandomService
-
Constructor Summary
ModifierConstructorDescriptionprotected
FakeSequence
(List<Supplier<T>> suppliers, int minLength, int maxLength, RandomService randomService, double nullRate) -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.lang.Iterable
forEach, iterator, spliterator
-
Field Details
-
randomService
-
suppliers
-
nullRate
protected final double nullRate -
minLength
protected final int minLength -
maxLength
protected final int maxLength
-
-
Constructor Details
-
FakeSequence
protected FakeSequence(List<Supplier<T>> suppliers, int minLength, int maxLength, RandomService randomService, double nullRate)
-
-
Method Details
-
get
public abstract <Sequence> Sequence get() -
isInfinite
public boolean isInfinite() -
singleton
-