Package cdm.base.datetime.functions
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
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract IntegerdoEvaluate(com.rosetta.model.lib.records.Date firstDate, com.rosetta.model.lib.records.Date secondDate) evaluate(com.rosetta.model.lib.records.Date firstDate, com.rosetta.model.lib.records.Date secondDate) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.rosetta.model.lib.functions.RosettaFunction
toBuilder, toBuilder, toBuilder
-
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)
-