Class Instance.NewInstance<T>

  • Type Parameters:
    T - the type of instance supplied
    All Implemented Interfaces:
    Supplier<T>
    Enclosing interface:
    Instance

    public static class Instance.NewInstance<T>
    extends Object
    implements Supplier<T>
    A Supplier implementation that supplies new instances of a class each time its get() method is called.
    • Constructor Detail

      • NewInstance

        protected NewInstance​(Class<T> instanceClass)
    • Method Detail

      • get

        public T get()
        Specified by:
        get in interface Supplier<T>