public enum FormatType extends Enum<FormatType>
| Modifier and Type | Method and Description |
|---|---|
static FormatType |
mapAcceptToFormat(String accept) |
static String |
mapFormatToAccept(FormatType format) |
static FormatType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static FormatType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final FormatType XML
public static final FormatType JSON
public static final FormatType RAW
public static final FormatType FORM
public static FormatType[] values()
for (FormatType c : FormatType.values()) System.out.println(c);
public static FormatType 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 String mapFormatToAccept(FormatType format)
public static FormatType mapAcceptToFormat(String accept)
Copyright © 2024. All Rights Reserved.