Interface PropertyProvider

All Superinterfaces:
Serializable
All Known Implementing Classes:
ReflectivePropertyProvider
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 PropertyProvider extends Serializable
Marker interface for objects that provide a list of properties of that object (see Property).
Since:
2022-05-19
Author:
miki
  • Method Summary

    Modifier and Type
    Method
    Description
    <T> List<Property<T,?>>
    getObjectPropertyDefinitions(Class<T> type, T instance)
    Builds a list of property definitions for a given object.
  • Method Details

    • getObjectPropertyDefinitions

      <T> List<Property<T,?>> getObjectPropertyDefinitions(Class<T> type, T instance)
      Builds a list of property definitions for a given object.
      Type Parameters:
      T - Generic type to enforce both type and instance are compatible.
      Parameters:
      type - Type of the object.
      instance - An instance of the object. Can be null.
      Returns:
      A non-null list of Propertys that can be empty.