Package com.helger.tree.withid
Class AbstractTreeItemWithIDFactory<KEYTYPE,DATATYPE,ITEMTYPE extends ITreeItemWithID<KEYTYPE,DATATYPE,ITEMTYPE>>
- java.lang.Object
-
- com.helger.tree.withid.AbstractTreeItemWithIDFactory<KEYTYPE,DATATYPE,ITEMTYPE>
-
- Type Parameters:
KEYTYPE- tree item key typeDATATYPE- tree item value typeITEMTYPE- tree item implementation type
- All Implemented Interfaces:
ITreeItemWithIDFactory<KEYTYPE,DATATYPE,ITEMTYPE>
- Direct Known Subclasses:
DefaultTreeItemWithIDFactory
@NotThreadSafe public abstract class AbstractTreeItemWithIDFactory<KEYTYPE,DATATYPE,ITEMTYPE extends ITreeItemWithID<KEYTYPE,DATATYPE,ITEMTYPE>> extends Object implements ITreeItemWithIDFactory<KEYTYPE,DATATYPE,ITEMTYPE>
Abstract tree item with ID factory implementation- Author:
- Philip Helger
-
-
Constructor Summary
Constructors Constructor Description AbstractTreeItemWithIDFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidonAddItem(ITEMTYPE aItem)To be called once a tree item is added to the owning tree.voidonRemoveItem(ITEMTYPE aItem)To be called once a tree item is removed from the owning tree.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.helger.tree.withid.ITreeItemWithIDFactory
create, createRoot
-
-
-
-
Method Detail
-
onRemoveItem
@OverrideOnDemand public void onRemoveItem(@Nonnull ITEMTYPE aItem)
Description copied from interface:ITreeItemWithIDFactoryTo be called once a tree item is removed from the owning tree. This method is mainly important for the tree with globally unique IDs.- Specified by:
onRemoveItemin interfaceITreeItemWithIDFactory<KEYTYPE,DATATYPE,ITEMTYPE extends ITreeItemWithID<KEYTYPE,DATATYPE,ITEMTYPE>>- Parameters:
aItem- The item that was removed.
-
onAddItem
@OverrideOnDemand public void onAddItem(@Nonnull ITEMTYPE aItem)
Description copied from interface:ITreeItemWithIDFactoryTo be called once a tree item is added to the owning tree. This method is mainly important for the tree with globally unique IDs.- Specified by:
onAddItemin interfaceITreeItemWithIDFactory<KEYTYPE,DATATYPE,ITEMTYPE extends ITreeItemWithID<KEYTYPE,DATATYPE,ITEMTYPE>>- Parameters:
aItem- The item that was added.
-
-