Interface ITreeItemFactory<DATATYPE,​ITEMTYPE extends ITreeItem<DATATYPE,​ITEMTYPE>>

  • Type Parameters:
    DATATYPE - item value type
    ITEMTYPE - item implementation type
    All Known Implementing Classes:
    DefaultTreeItemFactory

    public interface ITreeItemFactory<DATATYPE,​ITEMTYPE extends ITreeItem<DATATYPE,​ITEMTYPE>>
    Interface for a simple tree item factory
    Author:
    Philip Helger
    • Method Detail

      • createRoot

        @Nonnull
        ITEMTYPE createRoot()
        Create a root entry.
        Returns:
        New root entry. May not be null.
      • create

        @Nonnull
        ITEMTYPE create​(@Nonnull
                        ITEMTYPE aParent)
        Create a child entry.
        Parameters:
        aParent - The parent entry to use. May not be null.
        Returns:
        The created non-root entry. May not be null.