Package com.amazonaws.util
Enum JodaTime
- java.lang.Object
-
- java.lang.Enum<JodaTime>
-
- com.amazonaws.util.JodaTime
-
- All Implemented Interfaces:
Serializable
,Comparable<JodaTime>
public enum JodaTime extends Enum<JodaTime>
Utilities for accessing joda-time.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static 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(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.
-
-
-
Method Detail
-
values
public static JodaTime[] 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 (JodaTime c : JodaTime.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static JodaTime 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
-
getVersion
public static String getVersion()
Returns the current version of joda-time used during runtime; or null if it cannot be determined.
-
hasExpectedBehavior
public static boolean hasExpectedBehavior()
Returns true if the current version of joda-time used during runtime behaves as expected by the Java SDK; false otherwise.
-
-