public class TopologicalSortedList<E> extends gnu.trove.list.linked.TLinkedList<TopologicalSortedList.Node<E>>
| Modifier and Type | Class and Description |
|---|---|
static class |
TopologicalSortedList.CycleException |
protected static class |
TopologicalSortedList.Edge<E> |
static class |
TopologicalSortedList.Node<E>
Represents a node in a topological sorted list.
|
modCount| Constructor and Description |
|---|
TopologicalSortedList() |
| Modifier and Type | Method and Description |
|---|---|
TopologicalSortedList.Node<E> |
addNode(E element)
Adds a node to the list.
|
void |
sort()
Sorts the list in topological order.
|
add, add, addAfter, addBefore, addFirst, addLast, clear, contains, forEachValue, get, getFirst, getLast, getNext, getPrevious, insert, listIterator, readExternal, remove, removeFirst, removeLast, size, toArray, toUnlinkedArray, toUnlinkedArray, writeExternaladdAll, iterator, remove, setequals, hashCode, indexOf, lastIndexOf, listIterator, removeRange, subListaddAll, containsAll, isEmpty, removeAll, retainAll, toArray, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitaddAll, containsAll, isEmpty, removeAll, replaceAll, retainAll, sort, spliterator, toArrayparallelStream, removeIf, streampublic TopologicalSortedList.Node<E> addNode(E element)
element - The element to addpublic void sort()
throws TopologicalSortedList.CycleException
TopologicalSortedList.CycleException - Gets thrown when a dependency cycle has been detectedCopyright © 2014–2015 MountainBlade. All rights reserved.