org.apache.tinkerpop.gremlin.util.function

## 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 and 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)`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### 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)

Copyright © 2013–2021 Apache Software Foundation. All rights reserved.