@Beta public enum ODataFormat extends Enum<ODataFormat>
Modifier and Type | Method and Description |
---|---|
static ODataFormat |
getODataFormat(String value)
Returns the
ODataFormat for the given identifier or throws and IllegalArgumentException if the
provided string is not a valid identifier. |
String |
toString() |
static ODataFormat |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ODataFormat[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ODataFormat JSON
public static final ODataFormat XML
public static ODataFormat[] values()
for (ODataFormat c : ODataFormat.values()) System.out.println(c);
public static ODataFormat 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 String toString()
toString
in class Enum<ODataFormat>
public static ODataFormat getODataFormat(@Nonnull String value)
ODataFormat
for the given identifier or throws and IllegalArgumentException
if the
provided string is not a valid identifier. This operation is case-insensitive.value
- The string identifier of the ODataFormat
.ODataFormat
associated with the identifier.Copyright © 2020 SAP SE. All rights reserved.