Interface PropertyCollector

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 PropertyCollector
This functional interface represents a 'translator' which will take an object and return a Tree representing the serializable representation of the object.
Changes to the tree should be reflected in the object, and vice-versa.
  • Method Summary

    Modifier and Type
    Method
    Description
    @Nullable Tree
    collect(@NotNull Object src)
    Attempt to collect the properties of the given object.
  • Method Details

    • collect

      @Nullable @Nullable Tree collect(@NotNull @NotNull Object src)
      Attempt to collect the properties of the given object.
      Parameters:
      src - the object to collect from
      Returns:
      the tree, or null if this collector cannot parse it. If null is returned, the next collector will be tried. This operation should be fail-fast.