| Package | Description |
|---|---|
| cz.auderis.tools.collection.topo |
Topological sorting mechanism, where object dependencies are taken into account.
|
| Modifier and Type | Class and Description |
|---|---|
class |
BasicTopoNode<K,V>
Basic implementation of
TopoNode
that exposes convenient static methods for easier instantiation. |
| Modifier and Type | Method and Description |
|---|---|
Collection<? extends TopoNode<?,?>> |
TopoCycleException.getCycleNodes()
Returns a collection of
TopoNode instances that are a part
of detected cyclic structures. |
| Modifier and Type | Method and Description |
|---|---|
static <K,V> List<V> |
TopoSorter.sort(Collection<? extends TopoNode<? extends K,? extends V>> sourceNodes)
Processes the given collection of
TopoNode nodes and returns the topologically
sorted list of items represented by input nodes or, if a cycle in dependency graph is detected,
throws TopoCycleException. |
static <K,V> void |
TopoSorter.sortTo(Collection<? extends TopoNode<? extends K,? extends V>> sourceNodes,
List<? super V> target)
Processes the given collection of
TopoNode nodes and appends the topologically
sorted items represented by input nodes to the end of target list. |
Copyright © 2014 Boleslav Bobcik - Auderis. All rights reserved.