@Immutable @ThreadSafe public class PlansState extends Object
Constructor and Description |
---|
PlansState() |
PlansState(Iterable<? extends ImmutableChain> chainCache) |
Modifier and Type | Method and Description |
---|---|
List<ImmutableChain> |
getAllChains() |
@NotNull List<ImmutableTopLevelPlan> |
getAllTopLevelPlans() |
ImmutableChain |
getPlan(@NotNull PlanKey planKey) |
com.google.common.collect.ImmutableCollection<ImmutableChain> |
getUnsortedPlans() |
PlansState |
removePlanFromState(@NotNull PlanKey planKey)
Removes the plan from the cache
|
PlansState |
removePlansFromState(@NotNull Iterable<PlanKey> planKeys) |
PlansState |
updateState(@NotNull ImmutableChain plan) |
PlansState |
updateState(@NotNull Map<PlanKey,? extends ImmutableChain> plansMap) |
public PlansState()
public PlansState(Iterable<? extends ImmutableChain> chainCache)
public ImmutableChain getPlan(@NotNull @NotNull PlanKey planKey)
@NotNull public @NotNull List<ImmutableTopLevelPlan> getAllTopLevelPlans()
public com.google.common.collect.ImmutableCollection<ImmutableChain> getUnsortedPlans()
public List<ImmutableChain> getAllChains()
public PlansState updateState(@NotNull @NotNull ImmutableChain plan)
public PlansState updateState(@NotNull @NotNull Map<PlanKey,? extends ImmutableChain> plansMap)
public PlansState removePlanFromState(@NotNull @NotNull PlanKey planKey)
planKey
- Key of the plan to be removed from cachepublic PlansState removePlansFromState(@NotNull @NotNull Iterable<PlanKey> planKeys)
Copyright © 2022 Atlassian Software Systems Pty Ltd. All rights reserved.
View cookie preferences