コード例 #1
0
 /**
  * Returns a composed {@link ThrowableBiByteConsumer} that fist applies this function to its
  * input, and then consumes the result using the given {@link ThrowableIntConsumer}.
  *
  * @param consumer The operation which consumes the result from this operation
  * @return A composed {@code ThrowableBiByteConsumer} that first applies this function to its
  *     input, and then consumes the result using the given {@code ThrowableIntConsumer}.
  * @throws NullPointerException If given argument is {@code null}
  */
 @Nonnull
 default ThrowableBiByteConsumer<X> consume(
     @Nonnull final ThrowableIntConsumer<? extends X> consumer) {
   Objects.requireNonNull(consumer);
   return (value1, value2) -> consumer.acceptThrows(applyAsIntThrows(value1, value2));
 }
コード例 #2
0
 /**
  * Returns a composed {@link ThrowableObjCharConsumer} that fist applies this function to its
  * input, and then consumes the result using the given {@link ThrowableIntConsumer}.
  *
  * @param consumer The operation which consumes the result from this operation
  * @return A composed {@code ThrowableObjCharConsumer} that first applies this function to its
  *     input, and then consumes the result using the given {@code ThrowableIntConsumer}.
  * @throws NullPointerException If given argument is {@code null}
  */
 @Nonnull
 default ThrowableObjCharConsumer<T, X> consume(
     @Nonnull final ThrowableIntConsumer<? extends X> consumer) {
   Objects.requireNonNull(consumer);
   return (t, value) -> consumer.acceptThrows(applyAsIntThrows(t, value));
 }