Module iu.util
Package edu.iu

Interface UnsafeConsumer<T>

Type Parameters:
T - Argument type
All Known Subinterfaces:
HttpResponseValidator
All Known Implementing Classes:
IuRateLimitter
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface UnsafeConsumer<T>
Equivalent to Consumer, but may throw any exception.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    accept(T argument)
    Accepts an argument using unsafe code.
  • Method Details

    • accept

      void accept(T argument) throws Throwable
      Accepts an argument using unsafe code.
      Parameters:
      argument - The argument.
      Throws:
      Throwable - If thrown by the unsafe code.