Package org.azd.utils

Class PathBuilder

java.lang.Object
org.azd.utils.PathBuilder

public class PathBuilder extends Object
Helper class to build the path parameter. This comes handy when a lengthy path should be constructed in a concise way.
  • Method Details

    • from

      public static PathBuilder from(String path)
      Constructs the builder instance with the passed path value.
      Parameters:
      path - Path value. e.g., 'devops'.
      Returns:
      PathBuilder instance. PathBuilder
    • append

      public PathBuilder append(String path)
      Appends the additional path value to the path builder instance.
      Parameters:
      path - Path value. e.g., 'url'. This will append the additional value to the previous path as 'devops/url'.
      Returns:
      PathBuilder instance. PathBuilder
    • build

      public String build()
      Constructs the complete path and returns the value as 'devops/url/some/value'.
      Returns:
      Constructed path value.