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 (seeProperty).- Since:
- 2022-05-19
- Author:
- miki
-
-
Method Summary
All Methods Instance Methods Abstract Methods 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 Detail
-
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 bothtypeandinstanceare compatible.- Parameters:
type- Type of the object.instance- An instance of the object. Can benull.- Returns:
- A non-
nulllist ofPropertys that can be empty.
-
-