Interface Appendable<T extends Element<T>>

    • Method Detail

      • append

        default <C extends ChildElement<T,​? super C>> Appendable<T> append​(Factory<C> creator)
        Append the child element created by the supplied factory.
        Type Parameters:
        C - child element type
        Parameters:
        creator - child element factory
        Returns:
        self reference to allow method chaining
      • append

        <C extends ChildElement<T,​? super C>> Appendable<T> append​(Factory<C> creator,
                                                                         java.util.function.Consumer<? super C> configurer)
        Append the child element created by the supplied factory configured by the supplied consumer.
        Type Parameters:
        C - child element type
        Parameters:
        creator - child element factory
        configurer - child element configurer
        Returns:
        self reference to allow method chaining