Class ExceptionFunction<T,​R>

    • Field Detail

      • thrownException

        private RuntimeException thrownException
        Exception that will be thrown when this function is executed.
    • Constructor Detail

      • ExceptionFunction

        public ExceptionFunction​(@Nonnull
                                 RuntimeException e)
        Constructor.
        Parameters:
        e - exception that will be thrown when this function is executed
    • Method Detail

      • apply

        public R apply​(T arg0)
        Specified by:
        apply in interface Function<T,​R>