Class ThrowableFunction<F,​T>

  • All Implemented Interfaces:
    com.google.common.base.Function<F,​T>, Function<F,​T>

    public abstract class ThrowableFunction<F,​T>
    extends Object
    implements com.google.common.base.Function<F,​T>
    TODO JavaDoc
    • Constructor Detail

      • ThrowableFunction

        public ThrowableFunction()
    • Method Detail

      • apply

        public T apply​(F input)
        Specified by:
        apply in interface com.google.common.base.Function<F,​T>
        Specified by:
        apply in interface Function<F,​T>
      • getFirstError

        public Exception getFirstError()
      • hasErrors

        public boolean hasErrors()
      • propagateIfPossible

        public <X extends Throwable> void propagateIfPossible​(Class<X> declaredType)
                                                       throws X extends Throwable
        Throws:
        X extends Throwable
      • applyThrowable

        protected abstract T applyThrowable​(F input)
                                     throws Exception
        Throws:
        Exception