public static enum DateTimeFormatterBuilder.SignStyle extends Enum<DateTimeFormatterBuilder.SignStyle>
Enum Constant and Description |
---|
ALWAYS
Style to always output the sign, where zero will output '+'.
|
EXCEEDS_PAD
Style to always output the sign if the value exceeds the pad width.
|
NEVER
Style to never output sign, only outputting the absolute value.
|
NORMAL
Style to output the sign only if the value is negative.
|
NOT_NEGATIVE
Style to block negative values, throwing an exception on printing.
|
Modifier and Type | Method and Description |
---|---|
static DateTimeFormatterBuilder.SignStyle |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static DateTimeFormatterBuilder.SignStyle[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DateTimeFormatterBuilder.SignStyle NORMAL
public static final DateTimeFormatterBuilder.SignStyle ALWAYS
public static final DateTimeFormatterBuilder.SignStyle NEVER
public static final DateTimeFormatterBuilder.SignStyle NOT_NEGATIVE
public static final DateTimeFormatterBuilder.SignStyle EXCEEDS_PAD
public static DateTimeFormatterBuilder.SignStyle[] values()
for (DateTimeFormatterBuilder.SignStyle c : DateTimeFormatterBuilder.SignStyle.values()) System.out.println(c);
public static DateTimeFormatterBuilder.SignStyle 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 nullCopyright © 2014. All rights reserved.