Interface Factory<T>

Type Parameters:
T - The type of object created by this factory.
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface Factory<T>
A factory interface.
  • Method Summary

    Modifier and Type
    Method
    Description
    Creates and returns a new object instance.
  • Method Details

    • newInstance

      T newInstance()
      Creates and returns a new object instance.
      Returns:
      The new object instance.