Interface Generator<R>


@GwtCompatible @Deprecated(since="5.2.231004") public interface Generator<R>
Deprecated.
since 5.2.231004 - Use Supplier instead
Simple generator callback to generate objects of the specific type.
Since:
4.2.416
  • Method Summary

    Modifier and Type
    Method
    Description
    Deprecated.
    Generates an object of the specified type.
  • Method Details

    • invoke

      R invoke()
      Deprecated.
      Generates an object of the specified type. Each call to this method should create a new instance.
      Returns:
      the generated object of the specified type
      Since:
      4.2.416