Package com.remondis.propertypath.impl
Class GetBuilderImpl<I>
- java.lang.Object
-
- com.remondis.propertypath.impl.GetBuilderImpl<I>
-
- All Implemented Interfaces:
GetBuilder<I>
public class GetBuilderImpl<I> extends java.lang.Object implements GetBuilder<I>
-
-
Constructor Summary
Constructors Constructor Description GetBuilderImpl(java.lang.Class<I> startType)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <O,E extends java.lang.Exception>
Get<I,O,E>evaluate(PropertyPath<O,I,E> selector)Specifies the property path to evaluate.
-
-
-
Constructor Detail
-
GetBuilderImpl
public GetBuilderImpl(java.lang.Class<I> startType)
-
-
Method Detail
-
evaluate
public <O,E extends java.lang.Exception> Get<I,O,E> evaluate(PropertyPath<O,I,E> selector)
Description copied from interface:GetBuilderSpecifies the property path to evaluate. The property path is only allowed to perform getter calls on the provided proxy object. The methodsList.get(int)andMap.get(Object)are also supported.Exceptions
If the property path throws an exception, the generic exception type comes in place. When the property path is evaluated, it may throw exceptions of this type later.Don't
The specified property path is applied to a proxy object to determine the actual calls. The property path is not a function that is really invoked on the real object later. For this reason it is not possible to manipulate or calculate the data in the propety path. The property path is not a function operating on real objects!- Specified by:
evaluatein interfaceGetBuilder<I>- Parameters:
selector- A lambda function performing get calls on the specified object to declare the actual property path. This is not a function operating on real object. So do not manipulate or calculate here!- Returns:
- Returns the final
Getinstance.
-
-