of<T> static method

Try<T> of<T>(
  1. Supplier<T> supplier
)

Implementation

static Try<T> of<T>(final Supplier<T> supplier) {
  return Try._(supplier: supplier, recoveries: Map());
}