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