com.amazonaws.util
Enum JodaTime

java.lang.Object
  extended by java.lang.Enum<JodaTime>
      extended by com.amazonaws.util.JodaTime
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<JodaTime>

public enum JodaTime
extends java.lang.Enum<JodaTime>

Utilities for accessing joda-time.


Method Summary
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.
 
Methods inherited from class java.lang.Enum
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

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(java.lang.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:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null

getVersion

public static java.lang.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.



Copyright © 2010 Amazon Web Services, Inc. All Rights Reserved.