Package bm.util

Interface SupplyOrThrow<V>

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 interface SupplyOrThrow<V>
A supplier which may throw a BuildProblemException.
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Interface
    Description
    static interface 
    A Supplier which may throw any type of Exception.
  • Method Summary

    Modifier and Type
    Method
    Description
    get()
     
    static <V, EX extends Exception>
    SupplyOrThrow
    of(SupplyOrThrow.SoT<V,EX> sot)
    Creates a runnable to convert an arbitrary Exception thrown to a BuildProblemException.