public enum JodaHelper extends Enum<JodaHelper> implements Helper<org.joda.time.ReadableInstant>
| Enum Constant and Description |
|---|
jodaISO
A Helper for ISO-formatted
ReadableInstant. |
jodaPattern
A Helper for pattern-formatted
ReadableInstance. |
jodaStyle
A Helper for style-formatted
ReadableInstant. |
| Modifier and Type | Method and Description |
|---|---|
Object |
apply(org.joda.time.ReadableInstant time,
Options options) |
protected abstract CharSequence |
safeApply(org.joda.time.ReadableInstant time,
Options options)
Apply the helper to the context.
|
static JodaHelper |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static JodaHelper[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final JodaHelper jodaPattern
ReadableInstance. Pattern usage
is as specified in DateTimeFormat. Defaults to
M d y, H:m:s z, for example
11 15 1995, 14:32:10 CST.public static final JodaHelper jodaStyle
ReadableInstant. Style usage is
as specified in DateTimeFormat. Defaults to MM,
for examplepublic static final JodaHelper jodaISO
ReadableInstant.
Usages is detailed in ISODateTimeFormat.public static JodaHelper[] values()
for (JodaHelper c : JodaHelper.values()) System.out.println(c);
public static JodaHelper 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 Object apply(org.joda.time.ReadableInstant time, Options options) throws IOException
apply in interface Helper<org.joda.time.ReadableInstant>IOExceptionprotected abstract CharSequence safeApply(org.joda.time.ReadableInstant time, Options options)
time - The JodaTime ReadableInstant.options - Any formatting options, such as the Pattern, Style, or ISO format.Copyright © 2016. All rights reserved.