java.lang.Object
java.lang.Enum<JodaHelper>
com.github.jknack.handlebars.helper.ext.JodaHelper
All Implemented Interfaces:
com.github.jknack.handlebars.Helper<org.joda.time.ReadableInstant>, Serializable, Comparable<JodaHelper>, Constable

public enum JodaHelper extends Enum<JodaHelper> implements com.github.jknack.handlebars.Helper<org.joda.time.ReadableInstant>
Handlebars Helper for JodaTime ReadableInstance objects.
Author:
mrhanlon
  • Enum Constant Details

    • jodaPattern

      public static final JodaHelper jodaPattern
      A Helper for pattern-formatted ReadableInstance. Pattern usage is as specified in DateTimeFormat. Defaults to M d y, H:m:s z, for example 11 15 1995, 14:32:10 CST.
    • jodaStyle

      public static final JodaHelper jodaStyle
      A Helper for style-formatted ReadableInstant. Style usage is as specified in DateTimeFormat. Defaults to MM, for example
    • jodaISO

      public static final JodaHelper jodaISO
      A Helper for ISO-formatted ReadableInstant. Usages is detailed in ISODateTimeFormat.
  • Method Details

    • values

      public static JodaHelper[] 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 JodaHelper 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
    • apply

      public Object apply(org.joda.time.ReadableInstant time, com.github.jknack.handlebars.Options options) throws IOException
      Specified by:
      apply in interface com.github.jknack.handlebars.Helper<org.joda.time.ReadableInstant>
      Throws:
      IOException