Enum HillClimber.Adaptation.Type
- java.lang.Object
-
- java.lang.Enum<HillClimber.Adaptation.Type>
-
- com.github.benmanes.caffeine.cache.simulator.policy.sketch.climbing.HillClimber.Adaptation.Type
-
- All Implemented Interfaces:
Serializable,Comparable<HillClimber.Adaptation.Type>
- Enclosing class:
- HillClimber.Adaptation
public static enum HillClimber.Adaptation.Type extends Enum<HillClimber.Adaptation.Type>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description DECREASE_WINDOWHOLDINCREASE_WINDOW
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static HillClimber.Adaptation.TypevalueOf(String name)Returns the enum constant of this type with the specified name.static HillClimber.Adaptation.Type[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
HOLD
public static final HillClimber.Adaptation.Type HOLD
-
INCREASE_WINDOW
public static final HillClimber.Adaptation.Type INCREASE_WINDOW
-
DECREASE_WINDOW
public static final HillClimber.Adaptation.Type DECREASE_WINDOW
-
-
Method Detail
-
values
public static HillClimber.Adaptation.Type[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (HillClimber.Adaptation.Type c : HillClimber.Adaptation.Type.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static HillClimber.Adaptation.Type valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
-