|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.core.bean.EntityObject com.atlassian.bamboo.core.BambooEntityObject com.atlassian.bamboo.v2.build.agent.capability.RequirementSetImpl
public class RequirementSetImpl
Field Summary |
---|
Fields inherited from class com.atlassian.bamboo.core.BambooEntityObject |
---|
id |
Constructor Summary | |
---|---|
RequirementSetImpl()
|
|
RequirementSetImpl(RequirementSet other)
|
Method Summary | |
---|---|
void |
addAllRequirements(Iterable<Requirement> requirements)
Adds all the specified requirements to the set |
void |
addRequirement(Requirement requirement)
Adds a requirement to the set. |
boolean |
equals(Object o)
This method needs to be here in order to use proper id |
Requirement |
getRequirement(long id)
Get a requirement from the set via the id. |
Requirement |
getRequirement(String key)
Get a requirement from the set via the key. |
Requirement |
getRequirement(String key,
long ownerId)
Get a requirement from the set via the key and ownerId. |
Set<Requirement> |
getRequirements()
Get all requirements as a Set |
Set<Requirement> |
getRequirementsForPlugin(String pluginModuleKey,
long ownerId)
Gets all requirements that match the specified ImmutableRequirement.getPluginModuleKey() and ImmutableRequirement.getOwnerId() |
Set<Requirement> |
getSystemRequirements(String type)
Gets a subset of requirements which are of a particular system type. |
int |
hashCode()
This method needs to be here in order to use proper id |
boolean |
removeRequirement(ImmutableRequirement requirement)
Removes the requirement from the set. |
void |
removeRequirement(String key)
Removes all the requirements matching the key from the set. |
int |
removeRequirements(Iterable<Requirement> requirementIterable)
Removes all the specified Requirement s from the set. |
int |
removeRequirements(com.google.common.base.Predicate<Requirement> requirementPredicate)
Remove requirements from set if they match the given Predicate |
void |
setRequirements(Set<Requirement> requirements)
|
String |
toString()
|
Methods inherited from class com.atlassian.bamboo.core.BambooEntityObject |
---|
getId, setId |
Methods inherited from class com.atlassian.core.bean.EntityObject |
---|
clone, getCreationDate, getCurrentDate, getLastModificationDate, setClock, setCreationDate, setLastModificationDate |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface com.atlassian.bamboo.core.BambooObject |
---|
setId |
Methods inherited from interface com.atlassian.bamboo.core.BambooIdProvider |
---|
getId |
Constructor Detail |
---|
public RequirementSetImpl()
public RequirementSetImpl(@NotNull RequirementSet other)
Method Detail |
---|
public Requirement getRequirement(@NotNull String key)
RequirementSet
getRequirement
in interface RequirementSet
public Requirement getRequirement(@NotNull String key, long ownerId)
RequirementSet
getRequirement
in interface RequirementSet
public Requirement getRequirement(long id)
RequirementSet
getRequirement
in interface RequirementSet
@NotNull public Set<Requirement> getRequirements()
MinimalRequirementSet
Set
getRequirements
in interface MinimalRequirementSet
public Set<Requirement> getRequirementsForPlugin(@NotNull String pluginModuleKey, long ownerId)
RequirementSet
ImmutableRequirement.getPluginModuleKey()
and ImmutableRequirement.getOwnerId()
getRequirementsForPlugin
in interface RequirementSet
public void addRequirement(@NotNull Requirement requirement)
RequirementSet
addRequirement
in interface RequirementSet
public void addAllRequirements(Iterable<Requirement> requirements)
RequirementSet
addAllRequirements
in interface RequirementSet
public void removeRequirement(@NotNull String key)
RequirementSet
removeRequirement
in interface RequirementSet
public boolean removeRequirement(@NotNull ImmutableRequirement requirement)
RequirementSet
removeRequirement
in interface RequirementSet
requirement
- to remove
public int removeRequirements(@NotNull com.google.common.base.Predicate<Requirement> requirementPredicate)
RequirementSet
Predicate
removeRequirements
in interface RequirementSet
requirementPredicate
- for requirements to be removed from the current RequirementSet
public int removeRequirements(@NotNull Iterable<Requirement> requirementIterable)
RequirementSet
Requirement
s from the set.
removeRequirements
in interface RequirementSet
requirementIterable
- to remove
@NotNull public Set<Requirement> getSystemRequirements(String type)
RequirementSet
getSystemRequirements
in interface RequirementSet
public void setRequirements(Set<Requirement> requirements)
public String toString()
toString
in class Object
public boolean equals(Object o)
BambooEntityObject
equals
in class BambooEntityObject
public int hashCode()
BambooEntityObject
hashCode
in class BambooEntityObject
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |