java.lang.Object
dev.getelements.elements.sdk.cluster.path.Paths

public class Paths extends Object
  • Field Details

  • Method Details

    • iterateIntermediateHierarchy

      public static Iterable<Path> iterateIntermediateHierarchy(Path path)
      Iterates the supplied path descending into its hierarchy. This does not include the root path.
      Parameters:
      path - the path
      Returns:
      an Iterable<Path> for all paths in the hierarchy
    • randomPath

      public static Path randomPath()
      Generates a random Path. Typically used for testing. This does not use SecureRandom.
      Returns:
      a random path
    • randomPath

      public static Path randomPath(long seed)
      Generates a random Path. 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 random Path. Typically used for testing, but could also be used to generate paths as uuids. Allows for the specification of the Random instance.
      Returns:
      a random path