Interface ReadValueCallback<T,R>

Type Parameters:
T - Input type of the callback.
R - Output type of the callback.
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 ReadValueCallback<T,R>
A callback used when reading a JSON value, such as JsonReader.readArray(ReadValueCallback).
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    read(T input)
    Applies the read callback to the input.
  • Method Details

    • read

      R read(T input) throws IOException
      Applies the read callback to the input.
      Parameters:
      input - Input to the callback.
      Returns:
      The output of the callback.
      Throws:
      IOException - If an I/O error occurs during the callback.