Class DateTickUnitType

  • All Implemented Interfaces:
    java.io.Serializable

    public class DateTickUnitType
    extends java.lang.Object
    implements java.io.Serializable
    An enumeration of the unit types for a DateTickUnit instance.
    See Also:
    Serialized Form
    • Constructor Detail

      • DateTickUnitType

        private DateTickUnitType​(java.lang.String name,
                                 int calendarField)
        Private constructor.
        Parameters:
        name - the name.
        calendarField - the calendar field.
    • Method Detail

      • getCalendarField

        public int getCalendarField()
        Returns the calendar field.
        Returns:
        The calendar field.
      • toString

        public java.lang.String toString()
        Returns a string representing the object.
        Overrides:
        toString in class java.lang.Object
        Returns:
        The string.
      • equals

        public boolean equals​(java.lang.Object obj)
        Returns true if this object is equal to the specified object, and false otherwise.
        Overrides:
        equals in class java.lang.Object
        Parameters:
        obj - the other object.
        Returns:
        A boolean.
      • readResolve

        private java.lang.Object readResolve()
                                      throws java.io.ObjectStreamException
        Ensures that serialization returns the unique instances.
        Returns:
        The object.
        Throws:
        java.io.ObjectStreamException - if there is a problem.