Class FunctionUtils
- java.lang.Object
-
- org.apache.tinkerpop.gremlin.util.function.FunctionUtils
-
public final class FunctionUtils extends Object
- Author:
- Stephen Mallette (http://stephen.genoprime.com)
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <T,U>
BiConsumer<T,U>wrapBiConsumer(ThrowingBiConsumer<T,U> consumerThatThrows)
static <T> Consumer<T>
wrapConsumer(ThrowingConsumer<T> consumerThatThrows)
static <T,U>
Function<T,U>wrapFunction(ThrowingFunction<T,U> functionThatThrows)
static <T> Supplier<T>
wrapSupplier(ThrowingSupplier<T> supplierThatThrows)
-
-
-
Method Detail
-
wrapFunction
public static <T,U> Function<T,U> wrapFunction(ThrowingFunction<T,U> functionThatThrows)
-
wrapConsumer
public static <T> Consumer<T> wrapConsumer(ThrowingConsumer<T> consumerThatThrows)
-
wrapBiConsumer
public static <T,U> BiConsumer<T,U> wrapBiConsumer(ThrowingBiConsumer<T,U> consumerThatThrows)
-
wrapSupplier
public static <T> Supplier<T> wrapSupplier(ThrowingSupplier<T> supplierThatThrows)
-
-