Enum Class TimeStyle

Object
Enum<TimeStyle>
TimeStyle
All Implemented Interfaces:
Serializable, Comparable<TimeStyle>, Constable

public enum TimeStyle extends Enum<TimeStyle>
How to style a time in a file-name.
Author:
Owen Feehan
  • Enum Constant Details

    • INCLUDE_ENTIRELY

      public static final TimeStyle INCLUDE_ENTIRELY
      The entire time is included in the name: hh.mm.ss
    • IGNORE_SECONDS

      public static final TimeStyle IGNORE_SECONDS
      The time is included in the name, but without seconds: hh.mm
    • OMIT

      public static final TimeStyle OMIT
      The time is omitted from the name.
  • Method Details

    • values

      public static TimeStyle[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static TimeStyle valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified name
      NullPointerException - if the argument is null
    • patternWithDate

      public DateTimeFormatter patternWithDate(DateStyle dateStyle)
      Derives a formatter for the particular date AND time-style.
      Parameters:
      dateStyle - whether to include the date or not