Package org.joda.time

Class DateTimeFieldType.StandardDateTimeFieldType

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

    private static class DateTimeFieldType.StandardDateTimeFieldType
    extends DateTimeFieldType
    • 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
      • iUnitType

        private final transient DurationFieldType iUnitType
        The unit duration of the field.
      • iRangeType

        private final transient DurationFieldType iRangeType
        The range duration of the field.
    • Constructor Detail

      • StandardDateTimeFieldType

        StandardDateTimeFieldType​(java.lang.String name,
                                  byte ordinal,
                                  DurationFieldType unitType,
                                  DurationFieldType rangeType)
        Constructor.
        Parameters:
        name - the name to use
        ordinal - the byte value for the ordinal index
        unitType - the unit duration type
        rangeType - the range duration type
    • 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 DateTimeField getField​(Chronology chronology)
        Description copied from class: DateTimeFieldType
        Gets a suitable field for this type from the given Chronology.
        Specified by:
        getField in class DateTimeFieldType
        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