Class DayOfYearTerm

  • All Implemented Interfaces:
    Comparable<IIRVVectorTerm<?>>

    public class DayOfYearTerm
    extends LongValuedIIRVTerm
    3-character integer representing the day of the year.

    Valid values: 001-366 (365 + 1 for leap year)

    Since:
    13.0
    Author:
    Nick LaFarge
    • Field Detail

      • DAY_OF_YEAR_LENGTH

        public static final int DAY_OF_YEAR_LENGTH
        The length of the IIRV term within the message.
        See Also:
        Constant Field Values
      • DAY_OF_YEAR_PATTERN

        public static final String DAY_OF_YEAR_PATTERN
        Regular expression that ensures the validity of string values for this term.
        See Also:
        Constant Field Values
    • Method Detail

      • getDateComponents

        public DateComponents getDateComponents​(int year)
        Returns the DateComponents instance that corresponds this term's value.
        Parameters:
        year - year to associated with the created date components
        Returns:
        the date components associated with this term