public class ProjectPredicates extends Object
Constructor and Description |
---|
ProjectPredicates() |
Modifier and Type | Method and Description |
---|---|
static com.google.common.base.Predicate<Project> |
isEmpty(@NotNull CachedPlanManager cachedPlanManager)
Returns predicate that filters project containing no plans.
|
static com.google.common.base.Predicate<Project> |
isNotEmpty(@NotNull CachedPlanManager cachedPlanManager)
Returns predicate that filters project containing at least one plan.
|
static Predicate<Project> |
withPlansThat(@NotNull CachedPlanManager cachedPlanManager,
Predicate<? super ImmutableChain> planFilter)
Returns predicate that filters project containing plans that match given plan predicate.
|
public static Predicate<Project> withPlansThat(@NotNull @NotNull CachedPlanManager cachedPlanManager, @NotNull Predicate<? super ImmutableChain> planFilter)
CachedPlanManager
to avoid unnecessary DB hits.cachedPlanManager
- planFilter
- public static com.google.common.base.Predicate<Project> isEmpty(@NotNull @NotNull CachedPlanManager cachedPlanManager)
CachedPlanManager
to avoid unnecessary DB hits.cachedPlanManager
- public static com.google.common.base.Predicate<Project> isNotEmpty(@NotNull @NotNull CachedPlanManager cachedPlanManager)
CachedPlanManager
to avoid unnecessary DB hits.cachedPlanManager
- Copyright © 2022 Atlassian Software Systems Pty Ltd. All rights reserved.