- java.lang.Object
-
- org.quantlib.DayCounter
-
- All Implemented Interfaces:
AutoCloseable,org.quantlib.helpers.QuantLibJNIHelpers.AutoCloseable
- Direct Known Subclasses:
Actual360,Actual364,Actual36525,Actual365Fixed,Actual366,ActualActual,Business252,OneDayCounter,SimpleDayCounter,Thirty360,Thirty365
public class DayCounter extends Object implements org.quantlib.helpers.QuantLibJNIHelpers.AutoCloseable
-
-
Field Summary
Fields Modifier and Type Field Description protected booleanswigCMemOwn
-
Constructor Summary
Constructors Modifier Constructor Description protectedDayCounter(long cPtr, boolean cMemoryOwn)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intdayCount(Date d1, Date d2)voiddelete()booleanequals(DayCounter other)protected voidfinalize()protected static longgetCPtr(DayCounter obj)Stringname()protected static longswigRelease(DayCounter obj)StringtoString()booleanunEquals(DayCounter other)doubleyearFraction(Date d1, Date d2)doubleyearFraction(Date d1, Date d2, Date startRef)doubleyearFraction(Date d1, Date d2, Date startRef, Date endRef)
-
-
-
Field Detail
-
swigCMemOwn
protected transient boolean swigCMemOwn
-
-
Constructor Detail
-
DayCounter
protected DayCounter(long cPtr, boolean cMemoryOwn)
-
-
Method Detail
-
getCPtr
protected static long getCPtr(DayCounter obj)
-
swigRelease
protected static long swigRelease(DayCounter obj)
-
delete
public void delete()
- Specified by:
deletein interfaceorg.quantlib.helpers.QuantLibJNIHelpers.AutoCloseable
-
yearFraction
public double yearFraction(Date d1, Date d2, Date startRef, Date endRef)
-
yearFraction
public double yearFraction(Date d1, Date d2, Date startRef)
-
yearFraction
public double yearFraction(Date d1, Date d2)
-
equals
public boolean equals(DayCounter other)
-
unEquals
public boolean unEquals(DayCounter other)
-
-