Class 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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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: GetBuilder
        Specifies the property path to evaluate. The property path is only allowed to perform getter calls on the provided proxy object. The methods List.get(int) and Map.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:
        evaluate in interface GetBuilder<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 Get instance.