public class ModuleHelpers extends Object
| Constructor and Description |
|---|
ModuleHelpers() |
| Modifier and Type | Method and Description |
|---|---|
static <T extends IHierarchialReference<I>,I> |
hierarchyFilter(List<T> list,
boolean loadLeaves)
From a flat list creates a List of List
IHierarchialReferences (as nodes). |
public static <T extends IHierarchialReference<I>,I> List hierarchyFilter(List<T> list, boolean loadLeaves)
IHierarchialReferences (as nodes). The list need not be ordered but the parents should appear early in the List.
Algo complexity: 2 parses of list.
list - ListCopyright © 2018. All rights reserved.