Package org.joda.time

Class DurationFieldType.StandardDurationFieldType

java.lang.Object
org.joda.time.DurationFieldType
org.joda.time.DurationFieldType.StandardDurationFieldType
All Implemented Interfaces:
Serializable
Enclosing class:
DurationFieldType

private static class DurationFieldType.StandardDurationFieldType extends DurationFieldType
  • Field Details

    • serialVersionUID

      private static final long serialVersionUID
      Serialization version
      See Also:
    • iOrdinal

      private final byte iOrdinal
      The ordinal of the standard field type, for switch statements
  • Constructor Details

    • StandardDurationFieldType

      StandardDurationFieldType(String name, byte ordinal)
      Constructor.
      Parameters:
      name - the name to use
  • Method Details

    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • getField

      public DurationField getField(Chronology chronology)
      Description copied from class: DurationFieldType
      Gets a suitable field for this type from the given Chronology.
      Specified by:
      getField in class DurationFieldType
      Parameters:
      chronology - the chronology to use, null means ISOChronology in default zone
      Returns:
      a suitable field
    • readResolve

      private Object readResolve()
      Ensure a singleton is returned.
      Returns:
      the singleton type