org.jboss.errai.ioc.rebind.ioc.graph
Class GraphSort
java.lang.Object
org.jboss.errai.ioc.rebind.ioc.graph.GraphSort
public final class GraphSort
- extends Object
Topological sort algorithm to sort the dependency graph prior to emission of the generated code for the IOC
bootstrapper.
- Author:
- Mike Brock
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
sortGraph
public static List<SortUnit> sortGraph(Collection<SortUnit> in)
- Performs of a topological sort and returns a new list of sorted
SortUnit
s.
- Parameters:
in
- a list of sort units to be sorted.
- Returns:
- a new sorted lis
Copyright © 2013-2014 JBoss, a division of Red Hat. All Rights Reserved.