|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.mmm.util.collection.base.NodeCycle<V>
V - is the generic type of the nodes.public class NodeCycle<V>
This class is used to detect and represent a cyclic dependency of nodes.
| Field Summary | |
|---|---|
private SimpleValueConverter<V,String> |
formatter
|
private List<V> |
inverseCycle
|
private V |
startNode
|
| Constructor Summary | |
|---|---|
NodeCycle(V startNode)
The constructor. |
|
NodeCycle(V startNode,
SimpleValueConverter<V,String> formatter)
The constructor. |
|
| Method Summary | |
|---|---|
List<V> |
getInverseCycle()
This method gets the List of nodes that build a cycle. |
V |
getStartNode()
This method gets the start node where the detected cycle begins. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
private List<V> inverseCycle
getInverseCycle()private V startNode
getStartNode()private final SimpleValueConverter<V,String> formatter
toString()| Constructor Detail |
|---|
public NodeCycle(V startNode)
startNode - is the start-node.
public NodeCycle(V startNode,
SimpleValueConverter<V,String> formatter)
startNode - is the start-node.formatter - is the SimpleValueConverter used to get a custom
string-representation of the nodes. If null
Object.toString() is used as fallback.| Method Detail |
|---|
public List<V> getInverseCycle()
List of nodes that build a cycle. It is stored
in reverse order so the last node is the start of the cycle from top-level.
The first node will be the same node as the last one.
public V getStartNode()
public String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||