public final class FlagValue<T> extends Object
CacheLevel
across a request.
Clients do not usually access instances of this class directly, but use them indirectly via
the ExperimentState.get(ExperimentFlag)
method.
Constructor and Description |
---|
FlagValue(T value,
Condition.CacheLevel cacheLevel) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
Condition.CacheLevel |
getCacheLevel() |
T |
getValue() |
int |
hashCode() |
static <T> FlagValue<T> |
of(T value,
Condition.CacheLevel cacheLevel) |
String |
toString() |
void |
update(T newValue,
Condition.CacheLevel newLevel) |
void |
updateCacheLevel(Condition.CacheLevel newLevel) |
public FlagValue(T value, Condition.CacheLevel cacheLevel)
public static <T> FlagValue<T> of(T value, Condition.CacheLevel cacheLevel)
public T getValue()
public Condition.CacheLevel getCacheLevel()
public void update(T newValue, Condition.CacheLevel newLevel)
public void updateCacheLevel(Condition.CacheLevel newLevel)
Copyright © 2013. All rights reserved.