Package org.goplanit.utils.path
Class PathUtils
- java.lang.Object
-
- org.goplanit.utils.path.PathUtils
-
public class PathUtils extends Object
Path utilities- Author:
- markr
-
-
Constructor Summary
Constructors Constructor Description PathUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static String
getEdgeSegmentPathString(DirectedPath path, Function<EdgeSegment,Object> idGetter)
Returns the path as a String of comma-separated edge segment Id or external Id valuesstatic String
getNodePathString(DirectedPath path, Function<Vertex,Object> idMapper)
Returns the path as a String of comma-separated node Ids using the id mapper
-
-
-
Method Detail
-
getNodePathString
public static String getNodePathString(DirectedPath path, Function<Vertex,Object> idMapper)
Returns the path as a String of comma-separated node Ids using the id mapper- Parameters:
path
- to extract fromidMapper
- lambda function to get the required Id value- Returns:
- the path as a String of comma-separated node Id or external Id values
-
getEdgeSegmentPathString
public static String getEdgeSegmentPathString(DirectedPath path, Function<EdgeSegment,Object> idGetter)
Returns the path as a String of comma-separated edge segment Id or external Id values- Parameters:
path
- to extract fromidGetter
- lambda function to get the required Id value- Returns:
- the path as a String of comma-separated link segment Id or external Id values
-
-