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 the
Comparable
interface 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
-
Constructor Summary
-
Method Summary
Modifier and Type Method Description int
compareTo(Period o)
boolean
equals(Object obj)
LocalDate
getFixing()
LocalDate
getPayment()
LocalDate
getPeriodEnd()
LocalDate
getPeriodStart()
int
hashCode()
String
toString()
-
Constructor Details
-
Method Details
-
getFixing
-
getPayment
-
getPeriodStart
-
getPeriodEnd
-
compareTo
- Specified by:
compareTo
in interfaceComparable<Period>
-
hashCode
public int hashCode() -
equals
-
toString
-