Class FakeSequence<T>

java.lang.Object
net.datafaker.sequence.FakeSequence<T>
All Implemented Interfaces:
Iterable<T>
Direct Known Subclasses:
FakeCollection, FakeStream

public abstract class FakeSequence<T> extends Object implements Iterable<T>
  • Field Details

    • randomService

      protected final RandomService randomService
    • suppliers

      protected final List<Supplier<T>> 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

      public T singleton()