|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjcommon.graph.impl.TopologicalSortInput<TValue,TProcessedValue>
public class TopologicalSortInput<TValue,TProcessedValue>
ITopologicalSortInput| Constructor Summary | |
|---|---|
TopologicalSortInput(boolean starting,
Map<TValue,TProcessedValue> inputs)
Instantiates a new instance of TopologicalSortInput. |
|
| Method Summary | |
|---|---|
boolean |
contains(TValue value)
Returns a boolean indicating if the input contains a key for the provided vertex value. |
TProcessedValue |
first()
Retrieves the value of the first provided input. |
TProcessedValue |
get(TValue value)
Gets the output of an out neighbor vertex value. |
Iterable<TProcessedValue> |
inputs()
Generates an instance of Iterable that allows traversing the contents of the input. |
boolean |
isEmpty()
Determines if the input is empty. |
boolean |
isStart()
Indicates if this is a starting vertex (one with an in-degree of zero) we're processing. |
int |
size()
The size of the ITopologicalSortInput. |
String |
toString()
|
Set<TValue> |
values()
Returns the set of vertex values that generated the input. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public TopologicalSortInput(boolean starting,
Map<TValue,TProcessedValue> inputs)
TopologicalSortInput.
inputs - An instance of a Map that maps between a value and the output from
processing it.| Method Detail |
|---|
public boolean isStart()
ITopologicalSortInput
isStart in interface ITopologicalSortInput<TValue,TProcessedValue>true if this represents a starting vertex (one with an in-degree of zero).ITopologicalSortInput.isStart()public boolean isEmpty()
ITopologicalSortInput
isEmpty in interface ITopologicalSortInput<TValue,TProcessedValue>true if the input is empty; false otherwise.ITopologicalSortInput.isEmpty()public TProcessedValue get(TValue value)
ITopologicalSortInput
get in interface ITopologicalSortInput<TValue,TProcessedValue>value - The value whose output is desired.
ITopologicalSortInput.get(Object)public TProcessedValue first()
ITopologicalSortInputITopologicalSortInput.get(Object) method.
first in interface ITopologicalSortInput<TValue,TProcessedValue>null if there are no values in the input list.ITopologicalSortInput.first()public int size()
ITopologicalSortInputITopologicalSortInput. This is the same as the number of in-degree vertices in the IAdjacencyList.
size in interface ITopologicalSortInput<TValue,TProcessedValue>ITopologicalSortInput.ITopologicalSortInput.size()public boolean contains(TValue value)
ITopologicalSortInput
contains in interface ITopologicalSortInput<TValue,TProcessedValue>value - The vertex value for whom membership will be tested.
true if the provided vertex instance is a member of the input; false otherwise.ITopologicalSortInput.contains(Object)public Iterable<TProcessedValue> inputs()
ITopologicalSortInputIterable that allows traversing the contents of the input.
inputs in interface ITopologicalSortInput<TValue,TProcessedValue>Iterable for traversing the contents of the input.ITopologicalSortInput.inputs()public Set<TValue> values()
ITopologicalSortInput
values in interface ITopologicalSortInput<TValue,TProcessedValue>Set containing the set of vertex values that generated the input.ITopologicalSortInput.values()public String toString()
toString in class Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||