public final class NodePaths
extends java.lang.Object
NodePath
.Modifier and Type | Method and Description |
---|---|
static io.spine.web.firebase.NodePath |
of(java.lang.String... pathElements)
Creates a
NodePath by joining the given elements. |
static io.spine.web.firebase.NodePath |
of(java.lang.String path)
Creates a
NodePath from the given string. |
public static io.spine.web.firebase.NodePath of(java.lang.String... pathElements)
NodePath
by joining the given elements.
The elements are also checked for illegal path symbols. Such symbols
([, ], ., $, #) are replaced with the -
(hyphen) symbol.
pathElements
- the elements of a database pathpublic static io.spine.web.firebase.NodePath of(java.lang.String path)
NodePath
from the given string.
The path string is checked for illegal path symbols. Such symbols
([, ], ., $, #) are replaced with the -
(hyphen) symbol.
path
- the path string