Modifier and Type | Class and Description |
---|---|
private static class |
JodaTime.LazyHolder
A lazy holder class for retrieving the version of joda-time used during
runtime from the jar file discovered on the classpath.
|
Modifier and Type | Field and Description |
---|---|
private static boolean |
expectedBehavior |
Modifier and Type | Method and Description |
---|---|
private static boolean |
checkAlternateIso8601DateFormat() |
private static boolean |
checkExpectedBehavior() |
private static boolean |
checkFormatIso8601Date() |
private static boolean |
checkFormatRfc822Date() |
private static boolean |
checkInvalidDate() |
private static boolean |
checkParseCompressedIso8601Date() |
private static boolean |
checkParseIso8601Date() |
private static boolean |
checkParseIso8601DateUsingAlternativeFormat() |
private static boolean |
checkParseRfc822Date() |
private static boolean |
checkTT0031561767() |
static java.lang.String |
getVersion()
Returns the current version of joda-time used during runtime; or null
if it cannot be determined.
|
static boolean |
hasExpectedBehavior()
Returns true if the current version of joda-time used during runtime
behaves as expected by the Java SDK; false otherwise.
|
static JodaTime |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static JodaTime[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static JodaTime[] values()
for (JodaTime c : JodaTime.values()) System.out.println(c);
public static JodaTime 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 static java.lang.String getVersion()
public static boolean hasExpectedBehavior()
private static boolean checkExpectedBehavior()
private static boolean checkTT0031561767() throws java.text.ParseException
java.text.ParseException
private static boolean checkFormatIso8601Date() throws java.text.ParseException
java.text.ParseException
private static boolean checkFormatRfc822Date() throws java.text.ParseException
java.text.ParseException
private static boolean checkParseCompressedIso8601Date() throws java.text.ParseException
java.text.ParseException
private static boolean checkParseRfc822Date() throws java.text.ParseException
java.text.ParseException
private static boolean checkParseIso8601Date() throws java.text.ParseException
java.text.ParseException
private static boolean checkParseIso8601DateUsingAlternativeFormat() throws java.text.ParseException
java.text.ParseException
private static boolean checkAlternateIso8601DateFormat() throws java.text.ParseException
java.text.ParseException
private static boolean checkInvalidDate()