Interface Element<T extends Element,​Z extends Element>

    • Method Detail

      • self

        T self()
      • __

        Z __()
      • getParent

        Z getParent()
      • await

        default <M> T await​(AwaitConsumer<T,​M> asyncAction)
        Executes an async operation on a certain model
        Specified by:
        await in interface AsyncElement<T extends Element>
        Type Parameters:
        M - Generic type fo the received model
        Parameters:
        asyncAction - The async action to be executed on a element and model
        Returns:
        The processed element
      • dynamic

        default <U> T dynamic​(BiConsumer<T,​U> consumer)
        Type Parameters:
        U - The type of the model.
        Parameters:
        consumer - The continuation that consumes the element and a model.
        Returns:
        The same element that is passed to the consumer, corresponding to this element, i.e. self.