@Entity public class RequirementSetImpl extends BambooEntityObject implements RequirementSet
Constructor and Description |
---|
RequirementSetImpl() |
RequirementSetImpl(RequirementSet other) |
Modifier and Type | Method and Description |
---|---|
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) |
Requirement |
getRequirement(long id)
Get a requirement from the set via the id.
|
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() |
boolean |
removeRequirement(ImmutableRequirement requirement)
Removes the requirement 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() |
clone, getCreationDate, getCurrentDate, getId, getLastModificationDate, setClock, setCreationDate, setId, setLastModificationDate
finalize, getClass, notify, notifyAll, wait, wait, wait
setId
getId
public RequirementSetImpl()
public RequirementSetImpl(@NotNull RequirementSet other)
public Requirement getRequirement(@NotNull String key, long ownerId)
RequirementSet
getRequirement
in interface RequirementSet
public Requirement getRequirement(long id)
RequirementSet
getRequirement
in interface RequirementSet
getRequirement
in interface ImmutableRequirementSet
@NotNull public Set<Requirement> getRequirements()
ImmutableRequirementSet
Set
getRequirements
in interface RequirementSet
getRequirements
in interface ImmutableRequirementSet
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 boolean removeRequirement(@NotNull ImmutableRequirement requirement)
RequirementSet
removeRequirement
in interface RequirementSet
requirement
- to removepublic 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 boolean equals(Object o)
equals
in class com.atlassian.core.bean.EntityObject
public int hashCode()
hashCode
in class com.atlassian.core.bean.EntityObject
Copyright © 2019 Atlassian Software Systems Pty Ltd. All rights reserved.