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
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final intprotected final intprotected final doubleprotected final RandomService -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedFakeSequence(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, waitMethods 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
-