Interface AttributeGetter<T,R>
- Type Parameters:
T- The type of the input object (the target from which the attribute will be extracted).R- The type of the result (the attribute being extracted).
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Represents a function that extracts an attribute from a target object.
This functional interface is designed to be used in contexts where an attribute or property of an object needs to be retrieved, potentially throwing an exception if the operation fails.
- Author:
- Sergey Grachev
-
Method Summary
-
Method Details
-
get
Extracts an attribute from the given target.- Parameters:
target- the object from which to extract the attribute- Returns:
- the extracted attribute
- Throws:
Exception- if any error occurs during the extraction process
-