|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
TValue - An instance of an Object that can be retrieved.public interface ITopologicalSortInput<TValue,TProcessedValue>
Aggregates the output of out neighbor vertices as input to a vertex being processed.
| 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. |
Set<TValue> |
values()
Returns the set of vertex values that generated the input. |
| Method Detail |
|---|
boolean isStart()
true if this represents a starting vertex (one with an in-degree of zero).boolean isEmpty()
true if the input is empty; false otherwise.TProcessedValue get(TValue value)
value - The value whose output is desired.
TProcessedValue first()
get(Object) method.
null if there are no values in the input list.int size()
ITopologicalSortInput. This is the same as the number of in-degree vertices in the IAdjacencyList.
ITopologicalSortInput.boolean contains(TValue value)
value - The vertex value for whom membership will be tested.
true if the provided vertex instance is a member of the input; false otherwise.Iterable<TProcessedValue> inputs()
Iterable that allows traversing the contents of the input.
Iterable for traversing the contents of the input.Set<TValue> values()
Set containing the set of vertex values that generated the input.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||