@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() |
List<ImmutableTopLevelPlan> |
getAllTopLevelPlans() |
ImmutableChain |
getPlan(PlanKey planKey) |
com.google.common.collect.ImmutableCollection<ImmutableChain> |
getUnsortedPlans() |
PlansState |
removePlanFromState(PlanKey planKey)
Removes the plan from the cache
|
PlansState |
removePlansFromState(Iterable<PlanKey> planKeys) |
PlansState |
updateState(ImmutableChain plan) |
PlansState |
updateState(Map<PlanKey,? extends ImmutableChain> plansMap) |
public PlansState()
public PlansState(Iterable<? extends ImmutableChain> chainCache)
public ImmutableChain getPlan(@NotNull PlanKey planKey)
@NotNull public List<ImmutableTopLevelPlan> getAllTopLevelPlans()
public com.google.common.collect.ImmutableCollection<ImmutableChain> getUnsortedPlans()
public List<ImmutableChain> getAllChains()
public PlansState updateState(@NotNull ImmutableChain plan)
public PlansState updateState(@NotNull Map<PlanKey,? extends ImmutableChain> plansMap)
public PlansState removePlanFromState(@NotNull PlanKey planKey)
planKey
- Key of the plan to be removed from cachepublic PlansState removePlansFromState(@NotNull Iterable<PlanKey> planKeys)
Copyright © 2021 Atlassian Software Systems Pty Ltd. All rights reserved.