Class CapabilityRequirementsMatcherImpl
java.lang.Object
com.atlassian.bamboo.v2.build.agent.capability.CapabilityRequirementsMatcherImpl
- All Implemented Interfaces:
CapabilityRequirementsMatcher
public class CapabilityRequirementsMatcherImpl
extends Object
implements CapabilityRequirementsMatcher
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
matches
(@NotNull ReadOnlyCapabilitySet capabilities, Requirement requirement) Match a requirement to a requirement setboolean
matches
(@NotNull ReadOnlyCapabilitySet capabilities, ImmutableRequirement requirement) Match a requirement to a requirement setboolean
matches
(@NotNull ReadOnlyCapabilitySet capabilities, ImmutableRequirementSet requirements) Match a capability set to a requirement set.@NotNull CapabilityMatchResult
matchesWithResult
(@NotNull ReadOnlyCapabilitySet capabilities, @Nullable ImmutableRequirementSet requirements)
-
Constructor Details
-
CapabilityRequirementsMatcherImpl
public CapabilityRequirementsMatcherImpl()
-
-
Method Details
-
matches
public boolean matches(@NotNull @NotNull ReadOnlyCapabilitySet capabilities, Requirement requirement) Description copied from interface:CapabilityRequirementsMatcher
Match a requirement to a requirement set- Specified by:
matches
in interfaceCapabilityRequirementsMatcher
-
matches
public boolean matches(@NotNull @NotNull ReadOnlyCapabilitySet capabilities, ImmutableRequirement requirement) Description copied from interface:CapabilityRequirementsMatcher
Match a requirement to a requirement set- Specified by:
matches
in interfaceCapabilityRequirementsMatcher
- Returns:
-
matches
public boolean matches(@NotNull @NotNull ReadOnlyCapabilitySet capabilities, ImmutableRequirementSet requirements) Description copied from interface:CapabilityRequirementsMatcher
Match a capability set to a requirement set. In case of null or empty requirements this method will return true. If match, the agents capabilities meet the requirements.- Specified by:
matches
in interfaceCapabilityRequirementsMatcher
- Returns:
-
matchesWithResult
@NotNull public @NotNull CapabilityMatchResult matchesWithResult(@NotNull @NotNull ReadOnlyCapabilitySet capabilities, @Nullable @Nullable ImmutableRequirementSet requirements) - Specified by:
matchesWithResult
in interfaceCapabilityRequirementsMatcher
-