public enum Enablement extends Enum<Enablement>
| Enum Constant and Description |
|---|
FALSE
Feature is disabled.
|
PER_REQUEST
Feature is enabled per HTTP request.
|
TRUE
Feature is always enabled.
|
| Modifier and Type | Method and Description |
|---|---|
static Enablement |
fromString(String s)
Retrieves this enum using case-insensitive matching.
|
static Enablement |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Enablement[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Enablement TRUE
public static final Enablement PER_REQUEST
public static final Enablement FALSE
public static Enablement[] values()
for (Enablement c : Enablement.values()) System.out.println(c);
public static Enablement 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 static Enablement fromString(String s)
s - The enum name to resolve.Copyright © 2016–2019 The Apache Software Foundation. All rights reserved.