Interface FieldAdapterFactory

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 FieldAdapterFactory
Factory of field adapters.
  • Method Summary

    Modifier and Type
    Method
    Description
    Creates an adapter which reads and writes the field.
  • Method Details

    • newAdapter

      Optional<FieldAdapter> newAdapter(Field field)
      Creates an adapter which reads and writes the field.
      Parameters:
      field - field
      Returns:
      adapter, or empty if this factory cannot access the field (e.g. its package is not opened)