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 Details

    • 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 Details

    • 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
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object