Interface JsonWriter.Extractor<T extends @Nullable Object, R extends @Nullable Object>

Type Parameters:
T - the source type
R - the result type
Enclosing interface:
JsonWriter<T>
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 static interface JsonWriter.Extractor<T extends @Nullable Object, R extends @Nullable Object>
Interface that can be used to extract one value from another.
Since:
3.4.0
Author:
Phillip Webb, Moritz Halbritter
  • Method Summary

    Modifier and Type
    Method
    Description
    @Nullable R
    extract(@NonNull T value)
    Extract from the given value.
  • Method Details

    • extract

      @Nullable R extract(@NonNull T value)
      Extract from the given value.
      Parameters:
      value - the source value (never null)
      Returns:
      an extracted value or null