public class HierarchySorter<K> extends Object
Constructor and Description |
---|
HierarchySorter() |
Modifier and Type | Method and Description |
---|---|
Map<K,Collection<K>> |
getHierarchy() |
List<K> |
sort(Collection<K> sortables,
Comparator<K> comparator) |
List<K> |
sort(Map<K,Collection<K>> hierarchy) |
public Map<K,Collection<K>> getHierarchy()
public List<K> sort(Collection<K> sortables, Comparator<K> comparator)
Copyright © 2001-2015 JBoss by Red Hat. All Rights Reserved.