Package com.helger.tree.withid.folder
Class DefaultFolderTree<KEYTYPE,DATATYPE,COLLTYPE extends Collection<DATATYPE>>
- java.lang.Object
-
- com.helger.tree.withid.BasicTreeWithID<KEYTYPE,DATATYPE,ITEMTYPE>
-
- com.helger.tree.withid.unique.BasicTreeWithGlobalUniqueID<KEYTYPE,COLLTYPE,ITEMTYPE>
-
- com.helger.tree.withid.folder.BasicFolderTree<KEYTYPE,DATATYPE,COLLTYPE,DefaultFolderTreeItem<KEYTYPE,DATATYPE,COLLTYPE>>
-
- com.helger.tree.withid.folder.DefaultFolderTree<KEYTYPE,DATATYPE,COLLTYPE>
-
- Type Parameters:
KEYTYPE- The type of the element keys.DATATYPE- The type of the elements contained in the treeCOLLTYPE- the collection type consisting of value elements
- All Implemented Interfaces:
com.helger.commons.hierarchy.IChildrenProvider<DefaultFolderTreeItem<KEYTYPE,DATATYPE,COLLTYPE>>,com.helger.commons.hierarchy.IChildrenProviderWithID<KEYTYPE,DefaultFolderTreeItem<KEYTYPE,DATATYPE,COLLTYPE>>,com.helger.commons.hierarchy.IHasChildren<DefaultFolderTreeItem<KEYTYPE,DATATYPE,COLLTYPE>>,IBasicTree<COLLTYPE,DefaultFolderTreeItem<KEYTYPE,DATATYPE,COLLTYPE>>,IFolderTree<KEYTYPE,DATATYPE,COLLTYPE,DefaultFolderTreeItem<KEYTYPE,DATATYPE,COLLTYPE>>,ITreeWithID<KEYTYPE,COLLTYPE,DefaultFolderTreeItem<KEYTYPE,DATATYPE,COLLTYPE>>,ITreeWithGlobalUniqueID<KEYTYPE,COLLTYPE,DefaultFolderTreeItem<KEYTYPE,DATATYPE,COLLTYPE>>
- Direct Known Subclasses:
FileSystemFolderTree
@NotThreadSafe public class DefaultFolderTree<KEYTYPE,DATATYPE,COLLTYPE extends Collection<DATATYPE>> extends BasicFolderTree<KEYTYPE,DATATYPE,COLLTYPE,DefaultFolderTreeItem<KEYTYPE,DATATYPE,COLLTYPE>>
Root class for a simple tree. The elements of the tree are not sorted by any means.- Author:
- Philip Helger
-
-
Constructor Summary
Constructors Constructor Description DefaultFolderTree(com.helger.commons.aggregate.IAggregator<KEYTYPE,KEYTYPE> aKeyCombinator)Constructor that creates aDefaultFolderTreeItemFactoryusing the passed key combinator.DefaultFolderTree(IFolderTreeItemFactory<KEYTYPE,DATATYPE,COLLTYPE,DefaultFolderTreeItem<KEYTYPE,DATATYPE,COLLTYPE>> aFactory)Constructor
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <KEYTYPE,DATATYPE>
DefaultFolderTree<KEYTYPE,DATATYPE,com.helger.commons.collection.impl.ICommonsSet<DATATYPE>>createForSet(com.helger.commons.aggregate.IAggregator<KEYTYPE,KEYTYPE> aKeyCombinator)Create a newDefaultFolderTreeusing a set as the container.-
Methods inherited from class com.helger.tree.withid.unique.BasicTreeWithGlobalUniqueID
containsItemWithID, equals, getAllChildren, getAllItemDatas, getAllItems, getChildCount, getChildWithID, getFactory, getItemCount, getItemDataWithID, getItemWithID, hasChildren, hashCode, isItemSameOrDescendant, removeItemWithID, toString
-
Methods inherited from class com.helger.tree.withid.BasicTreeWithID
forAllChildren, forAllChildren, forAllChildrenBreakable, forAllChildrenMapped, getAllChildren, getChildCount, getChildren, getRootItem, hasChildren
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.helger.tree.IBasicTree
getRootItem
-
Methods inherited from interface com.helger.commons.hierarchy.IChildrenProvider
getAllChildren, getChildCount, hasChildren, hasNoChildren
-
Methods inherited from interface com.helger.commons.hierarchy.IChildrenProviderWithID
getChildWithID
-
Methods inherited from interface com.helger.commons.hierarchy.IHasChildren
forAllChildren, forAllChildren, forAllChildrenBreakable, forAllChildrenMapped, getAllChildren, getChildCount, getChildren, hasChildren, hasNoChildren
-
Methods inherited from interface com.helger.tree.withid.unique.ITreeWithGlobalUniqueID
containsItemWithID, getAllItemDatas, getAllItems, getItemCount, getItemDataWithID, getItemWithID, isItemSameOrDescendant, removeItemWithID
-
-
-
-
Constructor Detail
-
DefaultFolderTree
public DefaultFolderTree(@Nullable com.helger.commons.aggregate.IAggregator<KEYTYPE,KEYTYPE> aKeyCombinator)
Constructor that creates aDefaultFolderTreeItemFactoryusing the passed key combinator.- Parameters:
aKeyCombinator- The key combinator to be used. May benull.
-
DefaultFolderTree
public DefaultFolderTree(@Nonnull IFolderTreeItemFactory<KEYTYPE,DATATYPE,COLLTYPE,DefaultFolderTreeItem<KEYTYPE,DATATYPE,COLLTYPE>> aFactory)
Constructor- Parameters:
aFactory- The item factory to use. May not benull.
-
-
Method Detail
-
createForSet
@Nonnull public static <KEYTYPE,DATATYPE> DefaultFolderTree<KEYTYPE,DATATYPE,com.helger.commons.collection.impl.ICommonsSet<DATATYPE>> createForSet(@Nonnull com.helger.commons.aggregate.IAggregator<KEYTYPE,KEYTYPE> aKeyCombinator)
Create a newDefaultFolderTreeusing a set as the container.- Type Parameters:
KEYTYPE- The type of the element keys.DATATYPE- The type of the elements contained in the tree- Parameters:
aKeyCombinator- The key combinator to be used- Returns:
- The created default folder tree
-
-