Interface JsonToPdxConverter

All Superinterfaces:
org.springframework.core.convert.converter.Converter<String,org.apache.geode.pdx.PdxInstance>
All Known Implementing Classes:
JSONFormatterJsonToPdxConverter
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 JsonToPdxConverter extends org.springframework.core.convert.converter.Converter<String,org.apache.geode.pdx.PdxInstance>
A Spring Converter interface extension defining a contract to convert from JSON to a PdxInstance.
Since:
1.3.0
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    default org.apache.geode.pdx.PdxInstance
    convert(byte[] json)
    Converts the array of bytes containing JSON into a PdxInstance.

    Methods inherited from interface org.springframework.core.convert.converter.Converter

    andThen, convert
  • Method Details

    • convert

      @NonNull default org.apache.geode.pdx.PdxInstance convert(@NonNull byte[] json)
      Converts the array of bytes containing JSON into a PdxInstance.
      Parameters:
      json - array of bytes containing JSON to convert into a PdxInstance; must not be null.
      Returns:
      a PdxInstance converted from the array of bytes containing JSON.
      See Also:
      • Converter.convert(Object)