Package com.azure.xml

Interface XmlReadValueCallback<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 XmlReadValueCallback<T,R>
A callback used when reading an XML value, such as XmlReader.getNullableElement(XmlReadValueCallback).
  • 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 XMLStreamException
      Applies the read callback to the input.
      Parameters:
      input - Input to the callback.
      Returns:
      The output of the callback.
      Throws:
      XMLStreamException - If an XML stream error occurs during application of the callback.