public class GraphPaths extends Object
GraphPath.toString()
and parse(String)
are inverses.Modifier and Type | Method and Description |
---|---|
static String |
first(GraphPath path)
Returns the first element of the path
|
static String |
last(GraphPath path)
Returns the last element of the path
|
static GraphPath |
parse(String pathString)
De-serializes a path from the given string.
|
static GraphPath |
path(String... names)
Create a path containing the given sequence of names.
|
static GraphPath |
path(String name)
Create a path containing a single name.
|
static GraphPath |
remainder(GraphPath path)
Returns a
GraphPath consisting of all but the first element of the path |
public static String first(GraphPath path)
path
- the graph pathpublic static String last(GraphPath path)
path
- the graph pathpublic static GraphPath remainder(GraphPath path)
GraphPath
consisting of all but the first element of the pathpath
- the original pathIllegalArgumentException
- if the path does not have at least two elementspublic static final GraphPath path(String name)
name
- The name to convert to a pathname
public static final GraphPath path(String... names)
names
- An array of names to convert to a pathnames
in their
original orderCopyright © 2020 Actian Corporation. All rights reserved.