Interface ITreeItemWithUniqueIDFactory<KEYTYPE,​DATATYPE,​ITEMTYPE extends ITreeItemWithID<KEYTYPE,​DATATYPE,​ITEMTYPE>>

    • Method Detail

      • containsItemWithDataID

        boolean containsItemWithDataID​(@Nullable
                                       KEYTYPE aDataID)
        Check if an item with the given ID is contained.
        Parameters:
        aDataID - The data ID to look up.
        Returns:
        true if such an item is contained, false otherwise.
      • getItemOfDataID

        @Nullable
        ITEMTYPE getItemOfDataID​(@Nullable
                                 KEYTYPE aDataID)
        Try to retrieve the stored item with the given ID.
        Parameters:
        aDataID - The data ID to look up.
        Returns:
        null if no such item is contained, the item otherwise.
      • getItemCount

        @Nonnegative
        int getItemCount()
        Returns:
        The number of all contained items. Always ≥ 0.
      • getAllItems

        @Nonnull
        @ReturnsMutableCopy
        com.helger.commons.collection.impl.ICommonsCollection<ITEMTYPE> getAllItems()
        Returns:
        A collection that contains all items created by this factory instance.
      • getAllItemDatas

        @Nonnull
        @ReturnsMutableCopy
        com.helger.commons.collection.impl.ICommonsCollection<DATATYPE> getAllItemDatas()
        Returns:
        A collection that contains all item datas created by this factory instance.