| Modifier and Type | Class and Description |
|---|---|
class |
ComparatorTreeItemID<KEYTYPE,DATATYPE,ITEMTYPE extends ITreeItemWithID<KEYTYPE,DATATYPE,ITEMTYPE>>
Comparator for sorting
ITreeItemWithID
items by their ID using an explicit Comparator. |
class |
ComparatorTreeItemIDComparable<KEYTYPE extends Comparable<? super KEYTYPE>,DATATYPE,ITEMTYPE extends ITreeItemWithID<KEYTYPE,DATATYPE,ITEMTYPE>>
Comparator for sorting
ITreeItemWithID
items by their comparable ID. |
| Modifier and Type | Method and Description |
|---|---|
static <KEYTYPE extends Comparable<? super KEYTYPE>,DATATYPE,ITEMTYPE extends ITreeItemWithID<KEYTYPE,DATATYPE,ITEMTYPE>> |
TreeWithIDSorter.sortByID(IBasicTree<DATATYPE,ITEMTYPE> aTree)
Sort each level of the passed tree on the ID with the specified comparator.
|
static <KEYTYPE,DATATYPE,ITEMTYPE extends ITreeItemWithID<KEYTYPE,DATATYPE,ITEMTYPE>> |
TreeWithIDSorter.sortByID(IBasicTree<DATATYPE,ITEMTYPE> aTree,
Comparator<? super KEYTYPE> aKeyComparator)
Sort each level of the passed tree on the ID with the specified comparator.
|
static <KEYTYPE,DATATYPE extends Comparable<? super DATATYPE>,ITEMTYPE extends ITreeItemWithID<KEYTYPE,DATATYPE,ITEMTYPE>> |
TreeWithIDSorter.sortByValue(IBasicTree<DATATYPE,ITEMTYPE> aTree)
Sort each level of the passed tree on the value with the specified
comparator.
|
static <KEYTYPE,DATATYPE,ITEMTYPE extends ITreeItemWithID<KEYTYPE,DATATYPE,ITEMTYPE>> |
TreeWithIDSorter.sortByValue(IBasicTree<DATATYPE,ITEMTYPE> aTree,
Comparator<? super DATATYPE> aValueComparator)
Sort each level of the passed tree on the value with the specified
comparator.
|
| Modifier and Type | Method and Description |
|---|---|
static <KEYTYPE,DATATYPE,ITEMTYPE extends ITreeItemWithID<KEYTYPE,DATATYPE,ITEMTYPE>> |
TreeWithIDSearcher.findAllItemsWithIDRecursive(IBasicTree<DATATYPE,ITEMTYPE> aTree,
KEYTYPE aSearchID)
Fill all items with the same ID by linearly scanning of the tree.
|
static <KEYTYPE,DATATYPE,ITEMTYPE extends ITreeItemWithID<KEYTYPE,DATATYPE,ITEMTYPE>> |
TreeWithIDSearcher.findAllItemsWithIDRecursive(ITEMTYPE aTreeItem,
KEYTYPE aSearchID)
Fill all items with the same ID by linearly scanning the tree.
|
| Modifier and Type | Class and Description |
|---|---|
class |
AbstractTreeItemWithIDFactory<KEYTYPE,DATATYPE,ITEMTYPE extends ITreeItemWithID<KEYTYPE,DATATYPE,ITEMTYPE>>
Abstract tree item with ID factory implementation
|
class |
BasicTreeItemWithID<KEYTYPE,DATATYPE,ITEMTYPE extends ITreeItemWithID<KEYTYPE,DATATYPE,ITEMTYPE>>
Basic tree item with ID implementation, independent of the implementation
type.
|
class |
BasicTreeWithID<KEYTYPE,DATATYPE,ITEMTYPE extends ITreeItemWithID<KEYTYPE,DATATYPE,ITEMTYPE>>
Base class for a tree having items with IDs.
|
interface |
ITreeItemWithID<KEYTYPE,DATATYPE,ITEMTYPE extends ITreeItemWithID<KEYTYPE,DATATYPE,ITEMTYPE>>
Represents a basic tree item with an ID.
|
interface |
ITreeItemWithIDFactory<KEYTYPE,DATATYPE,ITEMTYPE extends ITreeItemWithID<KEYTYPE,DATATYPE,ITEMTYPE>>
A factory interface that creates tree items.
|
interface |
ITreeWithID<KEYTYPE,DATATYPE,ITEMTYPE extends ITreeItemWithID<KEYTYPE,DATATYPE,ITEMTYPE>>
Base interface for a tree with ID
|
| Modifier and Type | Class and Description |
|---|---|
class |
BasicTreeItemWithID<KEYTYPE,DATATYPE,ITEMTYPE extends ITreeItemWithID<KEYTYPE,DATATYPE,ITEMTYPE>>
Basic tree item with ID implementation, independent of the implementation
type.
|
class |
DefaultTreeItemWithID<KEYTYPE,DATATYPE>
Special implementation of
BasicTreeItemWithID using the item type
DefaultTreeItemWithID. |
| Modifier and Type | Interface and Description |
|---|---|
interface |
IFolderTreeItem<KEYTYPE,DATATYPE,COLLTYPE extends Collection<DATATYPE>,ITEMTYPE extends IFolderTreeItem<KEYTYPE,DATATYPE,COLLTYPE,ITEMTYPE>>
This interface represents a single folder within a directory tree.
|
| Modifier and Type | Class and Description |
|---|---|
class |
BasicFolderTreeItem<KEYTYPE,DATATYPE,COLLTYPE extends Collection<DATATYPE>,ITEMTYPE extends BasicFolderTreeItem<KEYTYPE,DATATYPE,COLLTYPE,ITEMTYPE>>
Base implementation of the
IFolderTreeItem interface. |
class |
DefaultFolderTreeItem<KEYTYPE,DATATYPE,COLLTYPE extends Collection<DATATYPE>>
Default implementation of the
IFolderTreeItem interface. |
| Modifier and Type | Class and Description |
|---|---|
class |
AbstractTreeItemWithUniqueIDFactory<KEYTYPE,DATATYPE,ITEMTYPE extends ITreeItemWithID<KEYTYPE,DATATYPE,ITEMTYPE>>
An abstract tree item factory that maintains a unique ID over all items.
|
class |
BasicTreeWithGlobalUniqueID<KEYTYPE,DATATYPE,ITEMTYPE extends ITreeItemWithID<KEYTYPE,DATATYPE,ITEMTYPE>>
A managed tree is a specialized version of the tree, where each item is
required to have a unique ID so that item searching can be performed quite
easily.
|
interface |
ITreeItemWithUniqueIDFactory<KEYTYPE,DATATYPE,ITEMTYPE extends ITreeItemWithID<KEYTYPE,DATATYPE,ITEMTYPE>>
An abstract tree item factory that maintains a unique ID over all items!
|
interface |
ITreeWithGlobalUniqueID<KEYTYPE,DATATYPE,ITEMTYPE extends ITreeItemWithID<KEYTYPE,DATATYPE,ITEMTYPE>>
A specialized version of the tree, where each item is required to have a
unique ID so that item searching can be performed with little runtime effort.
|
| Modifier and Type | Method and Description |
|---|---|
static <KEYTYPE,DATATYPE,ITEMTYPE extends ITreeItemWithID<KEYTYPE,DATATYPE,ITEMTYPE>> |
TreeXMLConverter.getTreeWithIDAsXML(IBasicTree<DATATYPE,ITEMTYPE> aTree,
Comparator<? super ITEMTYPE> aItemComparator,
IConverter<KEYTYPE,String> aIDConverter,
IConverterTreeItemToMicroNode<? super DATATYPE> aDataConverter) |
static <DATATYPE,ITEMTYPE extends ITreeItemWithID<String,DATATYPE,ITEMTYPE>> |
TreeXMLConverter.getTreeWithStringIDAsXML(IBasicTree<DATATYPE,ITEMTYPE> aTree,
IConverterTreeItemToMicroNode<? super DATATYPE> aConverter)
Specialized conversion method for converting a tree with ID to a
standardized XML tree.
|
Copyright © 2014–2015 Philip Helger. All rights reserved.