Package net.finmath.time
Class Period
- java.lang.Object
-
- net.finmath.time.Period
-
- All Implemented Interfaces:
Serializable,Comparable<Period>
public class Period extends Object implements Comparable<Period>, Serializable
A period, i.e. a time interval suitable for securities with regular payment schedules. For example, the accrual period is usually given by the interval periodStart, periodEnd, where as fixing date and payment date can be adjusted versions of periodStart and periodsEnd, e.g. via fixing offsets and payment offsets. Period implement theComparableinterface by simply using getPeriodEnd().compareTo(), i.e., the ordering is determined by periodEnd only. For a list of subsequent (sorted) periods it is often assumed that periodStart agrees with the periodEnd of the preceeding period, resulting in a time-discretization.- Version:
- 1.0
- Author:
- Christian Fries
- See Also:
- Serialized Form
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(Period o)booleanequals(Object obj)LocalDategetFixing()LocalDategetPayment()LocalDategetPeriodEnd()LocalDategetPeriodStart()inthashCode()StringtoString()
-