withResource<T> static method

Try<T> withResource<T>(
  1. T resource
)

Implementation

static Try<T> withResource<T>(final T resource) {
  return of(Suppliers.of(resource));
}