KEYTYPE - The key type.DATATYPE - The value type to be contained in tree items.ITEMTYPE - tree item typepublic interface ITreeItemWithUniqueIDFactory<KEYTYPE,DATATYPE,ITEMTYPE extends ITreeItemWithID<KEYTYPE,DATATYPE,ITEMTYPE>> extends ITreeItemWithIDFactory<KEYTYPE,DATATYPE,ITEMTYPE>
| Modifier and Type | Method and Description |
|---|---|
boolean |
containsItemWithDataID(KEYTYPE aDataID)
Check if an item with the given ID is contained.
|
Collection<DATATYPE> |
getAllItemDatas() |
Collection<ITEMTYPE> |
getAllItems() |
int |
getItemCount() |
ITEMTYPE |
getItemOfDataID(KEYTYPE aDataID)
Try to retrieve the stored item with the given ID.
|
create, createRoot, onAddItem, onRemoveItemboolean containsItemWithDataID(@Nullable KEYTYPE aDataID)
aDataID - The data ID to look up.true if such an item is contained, false
otherwise.@Nullable ITEMTYPE getItemOfDataID(@Nullable KEYTYPE aDataID)
aDataID - The data ID to look up.null if no such item is contained, the item otherwise.@Nonnegative int getItemCount()
@Nonnull @ReturnsMutableCopy Collection<ITEMTYPE> getAllItems()
@Nonnull @ReturnsMutableCopy Collection<DATATYPE> getAllItemDatas()
Copyright © 2014–2016 Philip Helger. All rights reserved.