Class YearType

    • Constructor Detail

      • YearType

        public YearType​(String year)
        Creates a new year from a string value.
        Parameters:
        year - String to parse.
      • YearType

        public YearType​(Date date)
        Parameters:
        date - Date to get the year from.
    • Method Detail

      • toString

        public String toString()
        Returns a String representation of this object.
        Overrides:
        toString in class Object
        Returns:
        Returns a String representation of this object.