Enum JodaTime

java.lang.Object
java.lang.Enum<JodaTime>
com.amazonaws.util.JodaTime
All Implemented Interfaces:
Serializable, Comparable<JodaTime>, java.lang.constant.Constable

public enum JodaTime extends Enum<JodaTime>
Utilities for accessing joda-time.
  • Method Details

    • values

      public static JodaTime[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      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 name
      NullPointerException - 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.