Fluent builder for accumulating a list of Dependency entries. Each add call appends one dependency for an app id, with an optional branch or version and an admin-only flag, and build returns the accumulated list.
Group: Builders
Methods
add(String appId)
Returns: DependencyMappingBuilder
Adds a dependency on the given app, taking the highest available version and not restricted to the admin domain.
| Parameter | Description |
|---|---|
appId | the id of the app to depend on |
add(String appId, Boolean adminOnly)
Returns: DependencyMappingBuilder
Adds a dependency on the given app, taking the highest available version.
| Parameter | Description |
|---|---|
appId | the id of the app to depend on |
adminOnly | true to restrict this dependency to the admin domain, null is treated as false |
add(String appId, String branch)
Returns: DependencyMappingBuilder
Adds a dependency on the given app and branch or version, not restricted to the admin domain.
| Parameter | Description |
|---|---|
appId | the id of the app to depend on |
branch | the required branch or version of the app, or null to take the highest available |
add(String appId, String branch, Boolean adminOnly)
Returns: DependencyMappingBuilder
Adds a dependency on the given app, branch or version, and admin-only setting.
| Parameter | Description |
|---|---|
appId | the id of the app to depend on |
branch | the required branch or version of the app, or null to take the highest available |
adminOnly | true to restrict this dependency to the admin domain, null is treated as false |
build()
Returns: List<Dependency>
Returns the list of dependencies accumulated by prior add calls.