Interface IChildable<R,​I extends IComponent>

    • Method Detail

      • getChildren

        java.util.List<I> getChildren()
        Returns the children of this component.
      • withChildren

        R withChildren​(java.lang.Iterable<? extends I> elements)
        Copy the current immutable object with elements that replace the content of children. A shallow reference equality check is used to prevent copying of the same value by returning this.
        Parameters:
        elements - An iterable of children elements to set
        Returns:
        A modified copy of this object
      • withChildren

        default R withChildren​(I... elements)
        Copy the current immutable object with elements that replace the content of children.
        Parameters:
        elements - The children elements to set
        Returns:
        A modified copy of this object