public static enum DateTimeFormatter.Pattern extends java.lang.Enum<DateTimeFormatter.Pattern>
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getId() |
java.text.DateFormat |
toFormat(java.util.Locale locale) |
java.lang.String |
toString() |
static DateTimeFormatter.Pattern |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static DateTimeFormatter.Pattern[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DateTimeFormatter.Pattern DEFAULT
public static final DateTimeFormatter.Pattern SHORT
public static final DateTimeFormatter.Pattern MEDIUM
public static final DateTimeFormatter.Pattern LONG
public static final DateTimeFormatter.Pattern FULL
public static DateTimeFormatter.Pattern[] values()
for (DateTimeFormatter.Pattern c : DateTimeFormatter.Pattern.values()) System.out.println(c);
public static DateTimeFormatter.Pattern valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic java.lang.String toString()
toString in class java.lang.Enum<DateTimeFormatter.Pattern>@Nonnull
public java.text.DateFormat toFormat(@Nonnull
java.util.Locale locale)
@Nonnull public java.lang.String getId()
Copyright © 2015 echocat. All Rights Reserved.