Package javax.time.calendar.format
Enum DateTimeFormatterBuilder.TextStyle
- java.lang.Object
-
- java.lang.Enum<DateTimeFormatterBuilder.TextStyle>
-
- javax.time.calendar.format.DateTimeFormatterBuilder.TextStyle
-
- All Implemented Interfaces:
Serializable
,Comparable<DateTimeFormatterBuilder.TextStyle>
- Enclosing class:
- DateTimeFormatterBuilder
public static enum DateTimeFormatterBuilder.TextStyle extends Enum<DateTimeFormatterBuilder.TextStyle>
Enumeration of the style of text output to use.- Author:
- Stephen Colebourne
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static DateTimeFormatterBuilder.TextStyle
valueOf(String name)
Returns the enum constant of this type with the specified name.static DateTimeFormatterBuilder.TextStyle[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
FULL
public static final DateTimeFormatterBuilder.TextStyle FULL
Full text, typically the full description.
-
SHORT
public static final DateTimeFormatterBuilder.TextStyle SHORT
Short text, typically an abbreviation.
-
NARROW
public static final DateTimeFormatterBuilder.TextStyle NARROW
Narrow text, typically a single letter.
-
-
Method Detail
-
values
public static DateTimeFormatterBuilder.TextStyle[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (DateTimeFormatterBuilder.TextStyle c : DateTimeFormatterBuilder.TextStyle.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static DateTimeFormatterBuilder.TextStyle valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
-