V- The type of the node's ID
T- The implementation's most specific sub-interface of GraphNodeAbsolutePath
public interface GraphNodeAbsolutePath<V,T extends GraphNodeAbsolutePath<V,T>> extends Comparable<T>
|Modifier and Type||Method and Description|
Indicates whether a
Returns the ID of current node.
Indicates whether the node has a parent or is the root node.
Returns an ordered, unmodifiable list of IDs representing the path to this node via its ancestors.
Returns a string representation of the node's absolute path, with each node ID padded out to a minimum length (optional operation).
Returns a string representation of the node's absolute path.
GraphNodeAbsolutePathimplementation, but should equal the most atomic ID for the node as used within its graph.
GraphNodeAbsolutePath represents an absolute path to a node, the node's
ID does not need to be unique within the graph so long as all nodes have IDs that are unique
among their siblings. E.g., in a graph where each node's position in its parent's list of
children serves as its ID, many nodes might have an ID of 0, but a given node could be uniquely
identified by a path of 0.0.0.0.0.
trueif this node has a parent;
falseif it does not.
GraphNodeAbsolutePathof the current node's parent.
boolean equals(Object obj)
GraphNodeAbsolutePathinstance is of the same type and has the same path as this instance. Note that this methods only indicates whether the paths and classes are equal, and says nothing about the actual nodes to which they refer; thus, it is possible for node paths from different graphs to be found to be equal to one another.
Different implementations of
GraphNodeAbsolutePath should be found to be unequal,
even if the values of their paths are identical. The paths of different
GraphNodeAbsolutePath implementations may be compared via their
String toPaddedString(int minIdLength)
toString(), the formatting rules for the path, including how nodes should be padded, are left entirely to the specific
GraphNodeAbsolutePath implementation is not required to provide any special
behavior for this method, but if it does not, this method should simply return the normal
minIdLength- the minimum length for each node ID.
Copyright © 2015–2018 Cycorp, Inc. All rights reserved.