com.atlassian.bamboo.v2.build.agent.capability
Class CapabilityRequirementsMatcherImpl

java.lang.Object
  extended by com.atlassian.bamboo.v2.build.agent.capability.CapabilityRequirementsMatcherImpl
All Implemented Interfaces:
CapabilityRequirementsMatcher

public class CapabilityRequirementsMatcherImpl
extends Object
implements CapabilityRequirementsMatcher


Constructor Summary
CapabilityRequirementsMatcherImpl()
           
 
Method Summary
 boolean matches(ReadOnlyCapabilitySet capabilities, MinimalRequirementSet requirements)
          Match a capability set to a requirement set.
 boolean matches(ReadOnlyCapabilitySet capabilities, Requirement requirement)
          Match a requirement to a requirement set
 CapabilityMatchResult matchesWithResult(ReadOnlyCapabilitySet capabilities, MinimalRequirementSet requirements)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CapabilityRequirementsMatcherImpl

public CapabilityRequirementsMatcherImpl()
Method Detail

matches

public boolean matches(@NotNull
                       ReadOnlyCapabilitySet capabilities,
                       Requirement requirement)
Description copied from interface: CapabilityRequirementsMatcher
Match a requirement to a requirement set

Specified by:
matches in interface CapabilityRequirementsMatcher
Returns:

matches

public boolean matches(@NotNull
                       ReadOnlyCapabilitySet capabilities,
                       MinimalRequirementSet requirements)
Description copied from interface: CapabilityRequirementsMatcher
Match a capability set to a requirement set. If match, the agents capabilities meet the requirements.

Specified by:
matches in interface CapabilityRequirementsMatcher
Returns:

matchesWithResult

@NotNull
public CapabilityMatchResult matchesWithResult(@NotNull
                                                       ReadOnlyCapabilitySet capabilities,
                                                       @Nullable
                                                       MinimalRequirementSet requirements)
Specified by:
matchesWithResult in interface CapabilityRequirementsMatcher


Copyright © 2015 Atlassian Software Systems Pty Ltd. All rights reserved.