Interface TransformerSupplier<K,​V,​R>

    • Method Detail

      • get

        Transformer<K,​V,​R> get()
        Return a newly constructed Transformer instance. The supplier should always generate a new instance each time gets called.

        Creating a single Transformer object and returning the same object reference in get() is a violation of the supplier pattern and leads to runtime exceptions.

        Specified by:
        get in interface Supplier<K>
        Returns:
        a newly constructed Transformer instance