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
IHierarchialReference s (as nodes). |
public static <T extends IHierarchialReference<I>,I> List hierarchyFilter(List<T> list, boolean loadLeaves)
IHierarchialReference
s (as nodes). The list need not be ordered but the parents should appear early in the List.
Algo complexity: 2 parses of list.
list
- List
Copyright © 2018. All rights reserved.