Package org.joda.time

Class DurationFieldType.StandardDurationFieldType

  • All Implemented Interfaces:
    java.io.Serializable
    Enclosing class:
    DurationFieldType

    private static class DurationFieldType.StandardDurationFieldType
    extends DurationFieldType
    • Field Detail

      • serialVersionUID

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

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

      • StandardDurationFieldType

        StandardDurationFieldType​(java.lang.String name,
                                  byte ordinal)
        Constructor.
        Parameters:
        name - the name to use
    • Method Detail

      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.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 java.lang.Object readResolve()
        Ensure a singleton is returned.
        Returns:
        the singleton type