Interface CapabilityRequirementsMatcher
- All Known Implementing Classes:
CapabilityRequirementsMatcherImpl
public interface CapabilityRequirementsMatcher
-
Method Summary
Modifier and TypeMethodDescriptionboolean
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, ImmutableRequirementSet requirements)
-
Method Details
-
matches
boolean matches(@NotNull @NotNull ReadOnlyCapabilitySet capabilities, ImmutableRequirementSet requirements) 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.- Parameters:
capabilities
-requirements
-- Returns:
-
matches
boolean matches(@NotNull @NotNull ReadOnlyCapabilitySet capabilities, ImmutableRequirement requirement) Match a requirement to a requirement set- Parameters:
capabilities
-requirement
-- Returns:
-
matchesWithResult
@NotNull @NotNull CapabilityMatchResult matchesWithResult(@NotNull @NotNull ReadOnlyCapabilitySet capabilities, ImmutableRequirementSet requirements)
-