Class CombinedReadOnlyCapabilitySet
java.lang.Object
com.atlassian.bamboo.v2.build.agent.capability.CombinedReadOnlyCapabilitySet
- All Implemented Interfaces:
ReadOnlyCapabilitySet
A combined "effective" capability set for an agent.
Combines the
CapabilityScope.AGENT
's CapabilitySetImpl
with it's CapabilityScope.SHARED
CapabilitySetImpl
. The agent's capabilities will override the shared capabilities.-
Constructor Summary
ConstructorDescriptionCombinedReadOnlyCapabilitySet
(@NotNull CapabilitySet agentCapabilitySet, @NotNull CapabilitySet sharedCapabilitySet) -
Method Summary
Modifier and TypeMethodDescription@NotNull Set<Capability>
Get all the capabilities as a set@Nullable Capability
getCapability
(@NotNull String key) Get the capability with the given keytoString()
-
Constructor Details
-
CombinedReadOnlyCapabilitySet
public CombinedReadOnlyCapabilitySet(@NotNull @NotNull CapabilitySet agentCapabilitySet, @NotNull @NotNull CapabilitySet sharedCapabilitySet)
-
-
Method Details
-
getCapabilities
Description copied from interface:ReadOnlyCapabilitySet
Get all the capabilities as a set- Specified by:
getCapabilities
in interfaceReadOnlyCapabilitySet
- Returns:
-
getCapability
Description copied from interface:ReadOnlyCapabilitySet
Get the capability with the given key- Specified by:
getCapability
in interfaceReadOnlyCapabilitySet
- Returns:
-
toString
-