Class ElementGeneratorFromSupplier

  • All Implemented Interfaces:
    Function<Iterable<? extends String>,​Iterable<? extends uk.gov.gchq.gaffer.data.element.Element>>, uk.gov.gchq.gaffer.data.generator.ElementGenerator<String>, uk.gov.gchq.gaffer.data.generator.OneToManyElementGenerator<String>

    public class ElementGeneratorFromSupplier
    extends Object
    implements uk.gov.gchq.gaffer.data.generator.OneToManyElementGenerator<String>
    Given a Supplier of Elements, this class generates an Iterable of Elements, limited in size to the specified maximum number.
    • Constructor Detail

      • ElementGeneratorFromSupplier

        public ElementGeneratorFromSupplier​(long maximumNumberOfElements,
                                            Supplier<uk.gov.gchq.gaffer.data.element.Element> elementSupplier)
    • Method Detail

      • _apply

        public Iterable<uk.gov.gchq.gaffer.data.element.Element> _apply​(String domainObject)
        Specified by:
        _apply in interface uk.gov.gchq.gaffer.data.generator.OneToManyElementGenerator<String>