org.jquantlib.daycounters
Class SimpleDayCounter.Impl
java.lang.Object
org.jquantlib.daycounters.DayCounter.Impl
org.jquantlib.daycounters.SimpleDayCounter.Impl
- Enclosing class:
- SimpleDayCounter
private final class SimpleDayCounter.Impl
- extends DayCounter.Impl
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
fallback
private final DayCounter fallback
SimpleDayCounter.Impl
private SimpleDayCounter.Impl()
name
protected final String name()
- Specified by:
name in class DayCounter.Impl
dayCount
protected long dayCount(Date dateStart,
Date dateEnd)
- Description copied from class:
DayCounter.Impl
- To be overloaded by more complex day counters
- Overrides:
dayCount in class DayCounter.Impl
- Parameters:
dateStart - is the starting DatedateEnd - is the ending Date
- Returns:
- the period between two dates as a fraction of year
yearFraction
protected final double yearFraction(Date dateStart,
Date dateEnd,
Date refPeriodStart,
Date refPeriodEnd)
- Specified by:
yearFraction in class DayCounter.Impl
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.