public static enum HttpEnum.EventType extends Enum<HttpEnum.EventType>
| Modifier and Type | Method and Description |
|---|---|
static HttpEnum.EventType |
fromString(String inputValue)
Static method to get an enum based on a string value.
|
String |
toString()
This method is annotated with
JsonValue,
so that jackson will serialize the enum value to
the (lowercase) value. |
static HttpEnum.EventType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static HttpEnum.EventType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final HttpEnum.EventType REQUEST
public static final HttpEnum.EventType RESPONSE
public static HttpEnum.EventType[] values()
for (HttpEnum.EventType c : HttpEnum.EventType.values()) System.out.println(c);
public static HttpEnum.EventType 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 HttpEnum.EventType fromString(String inputValue)
JsonCreator,
which allows the client to send case insensitive string
values (like "jSon"), which will be converted to the
correct enum value.inputValue - public String toString()
JsonValue,
so that jackson will serialize the enum value to
the (lowercase) value.toString in class Enum<HttpEnum.EventType>Copyright © 2020 terrestris GmbH & Co. KG. All rights reserved.