Interface PathSegmentDeserializer

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 PathSegmentDeserializer
Specifies how to deserialize a path segment. A PathSegmentDeserializer can optionally be specified for PathWalker and PathTreeWalker instances. It is needed when reading or writing to maps that have a non-String key type.
  • Method Summary

    Modifier and Type
    Method
    Description
    deserialize(Path path, int segmentIndex)
    Converts the path segment at the specified index to a map key.
  • Method Details

    • deserialize

      Object deserialize(Path path, int segmentIndex) throws Exception
      Converts the path segment at the specified index to a map key.
      Parameters:
      path - the path containing the segment
      segmentIndex - the index of the segment
      Returns:
      the map key
      Throws:
      Exception