Interface GetBuilder<I>

  • Type Parameters:
    I -
    All Known Implementing Classes:
    GetBuilderImpl

    public interface GetBuilder<I>
    This is the builder stage for specifying a property path.
    • Method Detail

      • evaluate

        <O,​E extends java.lang.Exception> Get<I,​O,​E> evaluate​(PropertyPath<O,​I,​E> selector)
        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!
        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.