|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface RequirementSet
Method Summary | |
---|---|
void |
addAllRequirements(java.lang.Iterable<Requirement> requirements)
Adds all the specified requirements to the set |
void |
addRequirement(Requirement requirement)
Adds a requirement to the set. |
Requirement |
getRequirement(long id)
Get a requirement from the set via the id. |
Requirement |
getRequirement(java.lang.String key)
Deprecated. key is not unique |
Requirement |
getRequirement(java.lang.String key,
long ownerId)
Get a requirement from the set via the key and ownerId. |
java.util.Set<Requirement> |
getRequirements()
Get all requirements as a Set |
java.util.Set<Requirement> |
getRequirementsForPlugin(java.lang.String pluginModuleKey,
long ownerId)
Gets all requirements that match the specified Requirement.getPluginModuleKey() and Requirement.getOwnerId() |
java.util.Set<Requirement> |
getSystemRequirements(java.lang.String type)
Gets a subset of requirements which are of a particular system type. |
boolean |
removeRequirement(Requirement requirement)
Removes the requirement from the set. |
void |
removeRequirement(java.lang.String key)
Deprecated. use removeRequirement(Requirement) |
int |
removeRequirements(java.lang.Iterable<Requirement> requirements)
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 |
Method Detail |
---|
@Deprecated @Nullable Requirement getRequirement(@NotNull java.lang.String key)
key
-
@Nullable Requirement getRequirement(@NotNull java.lang.String key, long ownerId)
key
- ownerId
-
@Nullable Requirement getRequirement(long id)
id
-
@NotNull java.util.Set<Requirement> getRequirements()
Set
java.util.Set<Requirement> getRequirementsForPlugin(@NotNull java.lang.String pluginModuleKey, long ownerId)
Requirement.getPluginModuleKey()
and Requirement.getOwnerId()
pluginModuleKey
- ownerId
-
void addRequirement(@NotNull Requirement requirement)
requirement
- void addAllRequirements(java.lang.Iterable<Requirement> requirements)
requirements
- @Deprecated void removeRequirement(@NotNull java.lang.String key)
removeRequirement(Requirement)
key
- boolean removeRequirement(@NotNull Requirement requirement)
requirement
- to remove
int removeRequirements(@NotNull com.google.common.base.Predicate<Requirement> requirementPredicate)
Predicate
requirementPredicate
- for requirements to be removed from the current RequirementSet
int removeRequirements(@NotNull java.lang.Iterable<Requirement> requirements)
Requirement
s from the set.
requirements
- to remove
@NotNull java.util.Set<Requirement> getSystemRequirements(java.lang.String type)
type
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |