Interface ParameterNameExtractor
-
Method Summary
Modifier and TypeMethodDescriptionExtracts the name from the givenparameter.static @NonNull ParameterNameExtractorsimple()Returns a parameter name extractor that returnsParameter.getName()without any transformations.static @NonNull ParameterNameExtractorwithTransformation(@NonNull Function<String, String> transformation) Returns a parameter name extractor that transformsParameter.getName()using the giventransformation.
-
Method Details
-
simple
Returns a parameter name extractor that returnsParameter.getName()without any transformations.- Returns:
- the extractor
-
withTransformation
static @NonNull ParameterNameExtractor withTransformation(@NonNull Function<String, String> transformation) Returns a parameter name extractor that transformsParameter.getName()using the giventransformation.- Parameters:
transformation- the name transformation- Returns:
- the transformed name
-
extract
Extracts the name from the givenparameter.- Parameters:
parameter- the parameter- Returns:
- the extracted name
-