Package org.azd.utils
Class PathBuilder
java.lang.Object
org.azd.utils.PathBuilder
Helper class to build the path parameter.
This comes handy when a lengthy path should be constructed in a concise way.
-
Method Summary
Modifier and TypeMethodDescriptionAppends the additional path value to the path builder instance.build()
Constructs the complete path and returns the value as 'devops/url/some/value'.static PathBuilder
Constructs the builder instance with the passed path value.
-
Method Details
-
from
Constructs the builder instance with the passed path value.- Parameters:
path
- Path value. e.g., 'devops'.- Returns:
- PathBuilder instance.
PathBuilder
-
append
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
Constructs the complete path and returns the value as 'devops/url/some/value'.- Returns:
- Constructed path value.
-