Interface WriteValueCallback<T,U>

Type Parameters:
T - First type of the callback.
U - Second 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 WriteValueCallback<T,U>
A callback used when writing a JSON value, such as JsonWriter.writeArray(Object[], WriteValueCallback).
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    write(T input1, U input2)
    Applies the write callback to input1 and input2.
  • Method Details

    • write

      void write(T input1, U input2) throws IOException
      Applies the write callback to input1 and input2.
      Parameters:
      input1 - First type of the callback.
      input2 - Second type of the callback.
      Throws:
      IOException - If an I/O error occurs during the callback.