org.jquantlib.daycounters
Class DayCounter.Impl
java.lang.Object
org.jquantlib.daycounters.DayCounter.Impl
- Direct Known Subclasses:
- Actual360.Impl, Actual365Fixed.Impl, ActualActual.ImplAFB, ActualActual.ImplISDA, ActualActual.ImplISMA, Business252.Impl, SimpleDayCounter.Impl, Thirty360.Impl_EU, Thirty360.Impl_IT, Thirty360.Impl_US
- Enclosing class:
- DayCounter
protected abstract class DayCounter.Impl
- extends Object
Base class for day counter implementations.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DayCounter.Impl
protected DayCounter.Impl()
name
protected abstract String name()
yearFraction
protected abstract double yearFraction(Date dateStart,
Date dateEnd,
Date refPeriodStart,
Date refPeriodEnd)
dayCount
protected long dayCount(Date dateStart,
Date dateEnd)
- To be overloaded by more complex day counters
- Parameters:
dateStart - is the starting DatedateEnd - is the ending Date
- Returns:
- the period between two dates as a fraction of year
Submit a bug or feature request
JQuantLib is free software: you can redistribute it and/or modify it under the terms of the JQuantLib license. You should have received a copy of the license along with this program; if not, please email mailto:jquant-devel@lists.sourceforge.net. The license is also available online at http://www.jquantlib.org/index.php/LICENSE.TXT.