Package org.faktorips.fl.functions.date
Class Days360
java.lang.Object
org.faktorips.fl.FunctionSignatureImpl
org.faktorips.fl.functions.AbstractBaseFlFunction<org.faktorips.codegen.JavaCodeFragment>
org.faktorips.fl.functions.AbstractFlFunction
org.faktorips.fl.functions.date.Days360
- All Implemented Interfaces:
FlFunction<org.faktorips.codegen.JavaCodeFragment>,FunctionSignature
Calculates the difference between two date values based on the ISMA 30/360 calendar.
- Author:
- dirmeier
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionCompilationResult<org.faktorips.codegen.JavaCodeFragment>compile(CompilationResult<org.faktorips.codegen.JavaCodeFragment>[] argResults) ((d2.getYear() - d1.getYear()) * 360 + (d2.getMonthOfYear() - d1.getMonthOfYear()) * 30 + (Math.min(d2.getDayOfMonth(), 30) - Math.min(d1.getDayOfMonth(), 30)))Methods inherited from class org.faktorips.fl.functions.AbstractFlFunction
getCompiler, getDatatypeHelper, getJavaClassName, setCompilerMethods inherited from class org.faktorips.fl.functions.AbstractBaseFlFunction
getDescription, setCompiler, setDescriptionMethods inherited from class org.faktorips.fl.FunctionSignatureImpl
getArgTypes, getName, getType, hasVarArgs, isSame, match, matchUsingConversion, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.faktorips.fl.FunctionSignature
getArgTypes, getName, getType, hasVarArgs, isSame, match, matchUsingConversion
-
Constructor Details
-
Days360
-
-
Method Details
-
compile
public CompilationResult<org.faktorips.codegen.JavaCodeFragment> compile(CompilationResult<org.faktorips.codegen.JavaCodeFragment>[] argResults) ((d2.getYear() - d1.getYear()) * 360 + (d2.getMonthOfYear() - d1.getMonthOfYear()) * 30 + (Math.min(d2.getDayOfMonth(), 30) - Math.min(d1.getDayOfMonth(), 30)))
-