public static enum Condition.CacheLevel extends Enum<Condition.CacheLevel>
Condition
will change when the
Condition.evaluate(ExperimentState)
method is called repeatedly.Enum Constant and Description |
---|
NONE
Indicates that the result of a call to
Condition.evaluate(ExperimentState) may never
be cached because the result is allowed to change during the lifetime of a single
request. |
RELOAD
Indicates that the result of a call to
Condition.evaluate(ExperimentState) will not change
at all for the current ExperimentSpace configuration, independent of the value of
the ExperimentState argument. |
REQUEST
Indicates that the result of a call to
Condition.evaluate(ExperimentState) will not change
when the same ExperimentState instance is passed to the Condition multiple
times. |
Modifier and Type | Method and Description |
---|---|
abstract Condition.CacheLevel |
merge(Condition.CacheLevel other) |
static Condition.CacheLevel |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Condition.CacheLevel[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Condition.CacheLevel NONE
Condition.evaluate(ExperimentState)
may never
be cached because the result is allowed to change during the lifetime of a single
request.public static final Condition.CacheLevel REQUEST
Condition.evaluate(ExperimentState)
will not change
when the same ExperimentState
instance is passed to the Condition
multiple
times.public static final Condition.CacheLevel RELOAD
Condition.evaluate(ExperimentState)
will not change
at all for the current ExperimentSpace
configuration, independent of the value of
the ExperimentState
argument.public static Condition.CacheLevel[] values()
for (Condition.CacheLevel c : Condition.CacheLevel.values()) System.out.println(c);
public static Condition.CacheLevel valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant
with the specified nameNullPointerException
- if the argument is nullpublic abstract Condition.CacheLevel merge(Condition.CacheLevel other)
Copyright © 2013. All rights reserved.