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 java.lang.Object
implements CapabilityRequirementsMatcher


Constructor Summary
CapabilityRequirementsMatcherImpl()
           
 
Method Summary
 boolean matches(ReadOnlyCapabilitySet capabilities, Requirement requirement)
          Match a requirement to a requirement set
 boolean matches(ReadOnlyCapabilitySet capabilities, RequirementSet requirements)
          Match a capability set to a requirement set.
 CapabilityMatchResult matchesWithResult(ReadOnlyCapabilitySet capabilities, RequirementSet 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,
                       RequirementSet 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,
                                                       RequirementSet requirements)
Specified by:
matchesWithResult in interface CapabilityRequirementsMatcher


Copyright © 2011 Atlassian. All Rights Reserved.