public abstract class ClassDependencySort extends Object
Modifier and Type | Class and Description |
---|---|
static interface |
ClassDependencySort.IInstanceInfoProvider
The objects being sorted need to show an InstanceInfo.
|
Constructor and Description |
---|
ClassDependencySort() |
Modifier and Type | Method and Description |
---|---|
static <T extends ClassDependencySort.IInstanceInfoProvider> |
getSorted(Collection<T> classes)
Perform a topological sort by inheritance.
|
public static <T extends ClassDependencySort.IInstanceInfoProvider> Collection<T> getSorted(Collection<T> classes)
IllegalStateException
- if there are circular dependencies.Copyright © 2016 The Apache Software Foundation. All rights reserved.