Class Paths
java.lang.Object
dev.getelements.elements.sdk.cluster.path.Paths
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic Comparator
<Path> Static instance ofPaths.WildcardFirst
static Comparator
<Path> Static instance ofPaths.WildcardLast
-
Method Summary
Modifier and TypeMethodDescriptionIterates the supplied path descending into its hierarchy.static Path
Generates a randomPath
.static Path
randomPath
(long seed) Generates a randomPath
.static Path
randomPath
(Random random, String letters, int maxComponents, int maxComponentLength) Generates a randomPath
.
-
Field Details
-
WILDCARD_LAST
Static instance ofPaths.WildcardLast
-
WILDCARD_FIRST
Static instance ofPaths.WildcardFirst
-
-
Method Details
-
iterateIntermediateHierarchy
Iterates the supplied path descending into its hierarchy. This does not include the root path. -
randomPath
Generates a randomPath
. Typically used for testing. This does not use SecureRandom.- Returns:
- a random path
-
randomPath
Generates a randomPath
. Typically used for testing. This does not use SecureRandom.- Returns:
- a random path
-
randomPath
public static Path randomPath(Random random, String letters, int maxComponents, int maxComponentLength) Generates a randomPath
. Typically used for testing, but could also be used to generate paths as uuids. Allows for the specification of theRandom
instance.- Returns:
- a random path
-