KEYTYPE - tree item key typeDATATYPE - tree item value type@NotThreadSafe public class DefaultTreeItemWithID<KEYTYPE,DATATYPE> extends BasicTreeItemWithID<KEYTYPE,DATATYPE,DefaultTreeItemWithID<KEYTYPE,DATATYPE>>
BasicTreeItemWithID using the item type
DefaultTreeItemWithID.| Constructor and Description |
|---|
DefaultTreeItemWithID(DefaultTreeItemWithID<KEYTYPE,DATATYPE> aParent,
KEYTYPE aDataID)
Constructor for normal elements
|
DefaultTreeItemWithID(ITreeItemWithIDFactory<KEYTYPE,DATATYPE,DefaultTreeItemWithID<KEYTYPE,DATATYPE>> aFactory)
Constructor for root object
|
changeParent, containsChildItemWithDataID, createChildItem, createChildItem, equals, getAllChildDataIDs, getAllChildDatas, getChildAtIndex, getChildCount, getChildItemOfDataID, getChildren, getData, getFactory, getFirstChild, getID, getLastChild, getParent, getParentData, getParentID, hasChildren, hashCode, internalAddChild, isRootItem, isSameOrChildOf, isValidData, isValidDataID, removeAllChildren, removeChild, reorderChildrenByItems, setData, toStringpublic DefaultTreeItemWithID(@Nonnull ITreeItemWithIDFactory<KEYTYPE,DATATYPE,DefaultTreeItemWithID<KEYTYPE,DATATYPE>> aFactory)
aFactory - The tree item factory to use. May not be null.public DefaultTreeItemWithID(@Nonnull DefaultTreeItemWithID<KEYTYPE,DATATYPE> aParent, @Nonnull KEYTYPE aDataID)
aParent - Parent item. May never be null since only the root has
no parent.aDataID - The ID of the new item. May not be null.Copyright © 2006–2015 phloc systems. All rights reserved.