public class CombinedReadOnlyCapabilitySet extends Object implements ReadOnlyCapabilitySet
CapabilityScope.AGENT
's CapabilitySetImpl
with it's CapabilityScope.SHARED
CapabilitySetImpl
. The agent's capabilities will override the shared capabilities.Constructor and Description |
---|
CombinedReadOnlyCapabilitySet(CapabilitySet agentCapabilitySet,
CapabilitySet sharedCapabilitySet) |
Modifier and Type | Method and Description |
---|---|
Set<Capability> |
getCapabilities()
Get all the capabilities as a set
|
Capability |
getCapability(String key)
Get the capability with the given key
|
public CombinedReadOnlyCapabilitySet(@NotNull CapabilitySet agentCapabilitySet, @NotNull CapabilitySet sharedCapabilitySet)
@Nullable public Capability getCapability(@NotNull String key)
ReadOnlyCapabilitySet
getCapability
in interface ReadOnlyCapabilitySet
@NotNull public Set<Capability> getCapabilities()
ReadOnlyCapabilitySet
getCapabilities
in interface ReadOnlyCapabilitySet
Copyright © 2021 Atlassian Software Systems Pty Ltd. All rights reserved.