public enum Admission extends Enum<Admission>
| Modifier and Type | Method and Description |
|---|---|
String |
format(String name)
Returns the policy's formatted name.
|
Admittor |
from(Config config,
PolicyStats policyStats)
Returns a configured admittor.
|
static Admission |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Admission[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Admission ALWAYS
public static final Admission TINYLFU
public static Admission[] values()
for (Admission c : Admission.values()) System.out.println(c);
public static Admission 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 Admittor from(Config config, PolicyStats policyStats)
config - the configurationpolicyStats - the stats