@Internal public class RepositoryPredicates extends Object
Modifier and Type | Method and Description |
---|---|
static com.google.common.base.Predicate<PlanRepositoryLink> |
hasPlanRepositoryLinkEqualRepositoryId(long repositoryId)
Get a predicate that returns true for
PlanRepositoryLink which has equal repository id |
static com.google.common.base.Predicate<RepositoryDefinition> |
hasRepositoryDefinitionEqualPluginKey(String pluginKey)
Get a predicate that returns true for
RepositoryDefinition which has equal plugin key |
static com.google.common.base.Predicate<RepositoryDefinition> |
isRepositoryDefinitionDefault()
Get a predicate that returns true for
RepositoryDefinition which is has position == 0 (is default) |
public static com.google.common.base.Predicate<PlanRepositoryLink> hasPlanRepositoryLinkEqualRepositoryId(long repositoryId)
PlanRepositoryLink
which has equal repository idrepositoryId
- id to be matched with PlanRepositoryLink.getRepositoryDataEntity()
public static com.google.common.base.Predicate<RepositoryDefinition> hasRepositoryDefinitionEqualPluginKey(@NotNull String pluginKey)
RepositoryDefinition
which has equal plugin keypluginKey
- pluginKey is to be matchedpublic static com.google.common.base.Predicate<RepositoryDefinition> isRepositoryDefinitionDefault()
RepositoryDefinition
which is has position == 0 (is default)Copyright © 2016 Atlassian Software Systems Pty Ltd. All rights reserved.