KEYTYPE - The type of the element keys.DATATYPE - The type of the elements contained in the treeCOLLTYPE - the collection type consisting of value elements@NotThreadSafe public class DefaultFolderTree<KEYTYPE,DATATYPE,COLLTYPE extends Collection<DATATYPE>> extends BasicFolderTree<KEYTYPE,DATATYPE,COLLTYPE,DefaultFolderTreeItem<KEYTYPE,DATATYPE,COLLTYPE>>
| Constructor and Description |
|---|
DefaultFolderTree(IAggregator<KEYTYPE,KEYTYPE> aKeyCombinator)
Constructor that creates a
DefaultFolderTreeItemFactory using the
passed key combinator. |
DefaultFolderTree(IFolderTreeItemFactory<KEYTYPE,DATATYPE,COLLTYPE,DefaultFolderTreeItem<KEYTYPE,DATATYPE,COLLTYPE>> aFactory)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
static <KEYTYPE,DATATYPE> |
createForSet(IAggregator<KEYTYPE,KEYTYPE> aKeyCombinator)
Create a new
DefaultFolderTree using a set as the container. |
containsItemWithID, equals, getAllChildren, getAllItemDatas, getAllItems, getChildCount, getChildWithID, getFactory, getItemCount, getItemDataWithID, getItemWithID, hasChildren, hashCode, isItemSameOrDescendant, removeItemWithID, toStringgetAllChildren, getChildCount, getRootItem, hasChildrenclone, finalize, getClass, notify, notifyAll, wait, wait, waitcontainsItemWithID, getAllItemDatas, getAllItems, getItemCount, getItemDataWithID, getItemWithID, isItemSameOrDescendant, removeItemWithIDgetRootItemgetAllChildren, getChildCount, hasChildrengetChildWithIDgetAllChildren, getChildCount, hasChildrenpublic DefaultFolderTree(@Nullable IAggregator<KEYTYPE,KEYTYPE> aKeyCombinator)
DefaultFolderTreeItemFactory using the
passed key combinator.aKeyCombinator - The key combinator to be used. May be null.public DefaultFolderTree(@Nonnull IFolderTreeItemFactory<KEYTYPE,DATATYPE,COLLTYPE,DefaultFolderTreeItem<KEYTYPE,DATATYPE,COLLTYPE>> aFactory)
aFactory - The item factory to use. May not be null.@Nonnull public static <KEYTYPE,DATATYPE> DefaultFolderTree<KEYTYPE,DATATYPE,Set<DATATYPE>> createForSet(@Nonnull IAggregator<KEYTYPE,KEYTYPE> aKeyCombinator)
DefaultFolderTree using a set as the container.KEYTYPE - The type of the element keys.DATATYPE - The type of the elements contained in the treeaKeyCombinator - The key combinator to be usedCopyright © 2014–2015 Philip Helger. All rights reserved.