Interface Factory<T>

  • Type Parameters:
    T - type of returned object
    All Superinterfaces:
    java.io.Serializable
    Functional Interface:
    This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

    @Stable
    @FunctionalInterface
    public interface Factory<T>
    extends java.io.Serializable
    A factory function.
    • Method Detail

      • apply

        T apply()
        Apply the factory function.
        Returns:
        the created object