Class LeapYearDateDifference

java.lang.Object
cdm.base.datetime.functions.LeapYearDateDifference
All Implemented Interfaces:
com.rosetta.model.lib.functions.RosettaFunction
Direct Known Subclasses:
LeapYearDateDifference.LeapYearDateDifferenceDefault, LeapYearDateDifferenceImpl

public abstract class LeapYearDateDifference extends Object implements com.rosetta.model.lib.functions.RosettaFunction
  • Constructor Details

    • LeapYearDateDifference

      public LeapYearDateDifference()
  • Method Details

    • evaluate

      public Integer evaluate(com.rosetta.model.lib.records.Date firstDate, com.rosetta.model.lib.records.Date secondDate)
      Parameters:
      firstDate - The left side of the subtraction.
      secondDate - The right side of the subtraction.
      Returns:
      difference The number of leap year calendar days secondDate is after firstDate. Negative means secondDate is before firstDate.
    • doEvaluate

      protected abstract Integer doEvaluate(com.rosetta.model.lib.records.Date firstDate, com.rosetta.model.lib.records.Date secondDate)