public class PlanPredicates extends Object
Constructor and Description |
---|
PlanPredicates() |
Modifier and Type | Method and Description |
---|---|
static Predicate<PlanIdentifier> |
hasEqualBuildName(String name) |
static Predicate<PlanIdentifier> |
hasEqualPlanKey(PlanKey planKey) |
static <T extends ImmutableChain> |
hasJobs(T chain) |
static <T extends ImmutablePlan> |
isBranchOf(PlanIdentifier master) |
static boolean |
isCloverEnabled(ImmutablePlan plan)
Check if plan is Clover enabled.
|
static Predicate<ImmutablePlan> |
isFavourite(LabelManager labelManager,
com.atlassian.user.User user)
Get a predicate that returns true for Plans that are marked as favourite for a given user.
|
static Predicate<ImmutablePlan> |
isMyBranch(com.atlassian.user.User user)
Get a predicate that returns true for branches that "belong" to a user.
|
static boolean |
planIsMaster(ImmutablePlan plan) |
static Predicate<ImmutablePlan> |
withEqualProjectKey(Project project) |
public static boolean isCloverEnabled(ImmutablePlan plan)
public static Predicate<ImmutablePlan> isFavourite(@NotNull LabelManager labelManager, @NotNull com.atlassian.user.User user)
labelManager
- LabelManager
user
- User
whose favourites would be testedNullPointerException
- when it operates on a null elementpublic static Predicate<ImmutablePlan> isMyBranch(com.atlassian.user.User user)
user
- User
whose branches would be testedNullPointerException
- when it operates on a null elementpublic static boolean planIsMaster(ImmutablePlan plan)
public static Predicate<ImmutablePlan> withEqualProjectKey(Project project)
public static Predicate<PlanIdentifier> hasEqualPlanKey(@NotNull PlanKey planKey)
public static Predicate<PlanIdentifier> hasEqualBuildName(@NotNull String name)
public static <T extends ImmutablePlan> Predicate<T> isBranchOf(@NotNull PlanIdentifier master)
public static <T extends ImmutableChain> boolean hasJobs(@NotNull T chain)
Copyright © 2021 Atlassian Software Systems Pty Ltd. All rights reserved.