Class SupplierOfInstance<T>

  • Type Parameters:
    T - type of instance
    All Implemented Interfaces:
    Supplier<T>

    public class SupplierOfInstance<T>
    extends Object
    implements Supplier<T>
    Supplier returning a defined instance, with toString() implementation calling toString() on the instance without wrapping it.
    • Constructor Detail

      • SupplierOfInstance

        public SupplierOfInstance​(T instance)
        Creates a new instance supplier
        Parameters:
        instance - instance ot wrap