public enum ResponseFormat extends Enum<ResponseFormat>
| Modifier and Type | Method and Description |
|---|---|
static ResponseFormat |
fromString(String param)
Default returned value is STRING;
|
static boolean |
isValid(String param) |
static ResponseFormat |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ResponseFormat[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ResponseFormat STRING
public static final ResponseFormat JSON
public static ResponseFormat[] values()
for (ResponseFormat c : ResponseFormat.values()) System.out.println(c);
public static ResponseFormat 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 ResponseFormat fromString(String param)
param - String parameterpublic static final boolean isValid(String param)
Copyright © 2016. All Rights Reserved.