public enum CoreTextMediaType extends Enum<CoreTextMediaType>
| Enum Constant and Description |
|---|
APPLICATION_JSON |
TEXT_PLAIN |
| Modifier and Type | Method and Description |
|---|---|
String |
getSubType() |
String |
getType() |
String |
toString() |
static CoreTextMediaType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static CoreTextMediaType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CoreTextMediaType TEXT_PLAIN
public static final CoreTextMediaType APPLICATION_JSON
public static CoreTextMediaType[] values()
for (CoreTextMediaType c : CoreTextMediaType.values()) System.out.println(c);
public static CoreTextMediaType 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 getType()
public String getSubType()
public String toString()
toString in class Enum<CoreTextMediaType>Copyright © 2019 SPF4J. All rights reserved.