public enum StringFormat extends Enum<StringFormat>
Enum Constant and Description |
---|
JSON |
KEY_VALUE_LIST |
Modifier and Type | Method and Description |
---|---|
String |
getMatchingHttpContentType() |
abstract String |
toFormattedString(CrashReportData data,
ImmutableSet<ReportField> order,
String mainJoiner,
String subJoiner,
boolean urlEncode) |
static StringFormat |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static StringFormat[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final StringFormat JSON
public static final StringFormat KEY_VALUE_LIST
public static StringFormat[] values()
for (StringFormat c : StringFormat.values()) System.out.println(c);
public static StringFormat 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 null@NonNull public abstract String toFormattedString(@NonNull CrashReportData data, @NonNull ImmutableSet<ReportField> order, @NonNull String mainJoiner, @NonNull String subJoiner, boolean urlEncode) throws Exception
Exception