Class RawYearMonthInterval

  • All Implemented Interfaces:
    PofConstants

    public class RawYearMonthInterval
    extends PofHelper
    An immutable POF year-month interval value.
    Since:
    Coherence 3.2
    Author:
    cp 2006.07.17
    • Constructor Detail

      • RawYearMonthInterval

        public RawYearMonthInterval​(int cYears,
                                    int cMonths)
        Construct a raw POF year-month interval value.
        Parameters:
        cYears - the number of years in the year-month interval
        cMonths - the number of months in the year-month interval
    • Method Detail

      • getYears

        public int getYears()
        Determine the number of years in the year-month interval.
        Returns:
        the number of years in the year-month interval
      • getMonths

        public int getMonths()
        Determine the number of months in the year-month interval.
        Returns:
        the number of months in the year-month interval
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object