Package com.remondis.propertypath.api
Interface PropertyPath<O,I,E extends java.lang.Exception>
-
- Type Parameters:
I- The type to evaluate a property path on.O- The type of the property value to return.E- The exception type that may be thrown by the get invocation chain.
- 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 PropertyPath<O,I,E extends java.lang.Exception>This functional interface defines a property path. It's basically a function that is applied to a proxy object at runtime. The property path function is expected to invoke a get-method chain specifying a valid traversal through Java Bean properties (with a support forListandMap).
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description OselectProperty(I i)Performs a get-method invocation chain on the specified input object to declare a property path.
-
-
-
Method Detail
-
selectProperty
O selectProperty(I i) throws E extends java.lang.Exception
Performs a get-method invocation chain on the specified input object to declare a property path. Only get-method calls and calls toList.get(int)andMap.get(Object)are allowed.Please read the explanation of the property path in
GetBuilder#evaluate(PropertyPathWithException)!- Parameters:
t- A proxy object to perform get-calls on. Do not manipulate or calculate here! This is not a function operating on real objects!- Throws:
E extends java.lang.Exception
-
-