Class Reflection
java.lang.Object
io.github.vitalforge.persistlib.util.Reflection
Utility class for reflection operations.
-
Method Summary
Modifier and TypeMethodDescriptionstatic <C,
P> Object[] extractFromContainer
(C container, ContainerDataCollector<C, P, Object> collector, P... targets) Extracts data from a container using a data collector and a set of targets.
-
Method Details
-
extractFromContainer
@SafeVarargs public static <C,P> Object[] extractFromContainer(C container, ContainerDataCollector<C, P, Object> collector, P... targets) Extracts data from a container using a data collector and a set of targets.- Type Parameters:
C
- The type of the container.P
- The type of the targets.- Parameters:
container
- The container from which to extract data.collector
- The data collector to use for extraction.targets
- The targets to extract from the container.- Returns:
- An array of objects extracted from the container.
-