Module io.jooby
Package io.jooby

Interface SneakyThrows.Supplier<V>

Type Parameters:
V - Result type.
All Superinterfaces:
Supplier<V>
Enclosing class:
SneakyThrows
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public static interface SneakyThrows.Supplier<V> extends Supplier<V>
Throwable version of Supplier.
  • Method Summary

    Modifier and Type
    Method
    Description
    default V
    get()
    Computes/retrieves a value.
    Computes/retrieves a value.
  • Method Details

    • tryGet

      V tryGet() throws Exception
      Computes/retrieves a value.
      Returns:
      A value.
      Throws:
      Exception - Is something goes wrong.
    • get

      default V get()
      Computes/retrieves a value.
      Specified by:
      get in interface Supplier<V>
      Returns:
      A value.