@Immutable public final class TreeWithIDSearcher extends Object
| Modifier and Type | Method and Description |
|---|---|
static <KEYTYPE,DATATYPE,ITEMTYPE extends ITreeItemWithID<KEYTYPE,DATATYPE,ITEMTYPE>> |
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>> |
findAllItemsWithIDRecursive(ITEMTYPE aTreeItem,
KEYTYPE aSearchID)
Fill all items with the same ID by linearly scanning the tree.
|
@Nonnull @ReturnsMutableCopy public static <KEYTYPE,DATATYPE,ITEMTYPE extends ITreeItemWithID<KEYTYPE,DATATYPE,ITEMTYPE>> List<ITEMTYPE> findAllItemsWithIDRecursive(@Nonnull IBasicTree<DATATYPE,ITEMTYPE> aTree, @Nullable KEYTYPE aSearchID)
KEYTYPE - tree ID typeDATATYPE - tree data typeITEMTYPE - tree item typeaTree - The tree to search. May not be null.aSearchID - The ID to search. May not be null.null list with all matching items.@Nonnull @ReturnsMutableCopy public static <KEYTYPE,DATATYPE,ITEMTYPE extends ITreeItemWithID<KEYTYPE,DATATYPE,ITEMTYPE>> List<ITEMTYPE> findAllItemsWithIDRecursive(@Nonnull ITEMTYPE aTreeItem, @Nullable KEYTYPE aSearchID)
KEYTYPE - tree ID typeDATATYPE - tree data typeITEMTYPE - tree item typeaTreeItem - The tree item to search. May not be null.aSearchID - The ID to search. May not be null.null list with all matching items.Copyright © 2014–2015 Philip Helger. All rights reserved.