Package org.gedcomx.date
Class GedcomxDateRecurring
java.lang.Object
org.gedcomx.date.GedcomxDate
org.gedcomx.date.GedcomxDateRecurring
- All Implemented Interfaces:
Comparable<GedcomxDate>
A Recurring Date
- Author:
- John Clark.
-
Constructor Summary
ConstructorsConstructorDescriptionGedcomxDateRecurring(String date) Instantiate a new Recurring date from the formal date string -
Method Summary
Modifier and TypeMethodDescriptiongetCount()Get the countGet the durationgetEnd()Get the end dateGet the nth instance of this recurring dategetRange()Get the rangegetStart()Get the start dategetType()Get the date typebooleanWhether or not this date is considered approximateReturn the formal string for this dateMethods inherited from class org.gedcomx.date.GedcomxDate
compareTo
-
Constructor Details
-
GedcomxDateRecurring
Instantiate a new Recurring date from the formal date string- Parameters:
date- The formal date string
-
-
Method Details
-
getCount
Get the count- Returns:
- The Count
-
getRange
Get the range- Returns:
- The Range
-
getStart
Get the start date- Returns:
- The Start Date
-
getDuration
Get the duration- Returns:
- The Duration
-
getEnd
Get the end date- Returns:
- The End Date
-
getNth
Get the nth instance of this recurring date- Parameters:
count- The nth instance- Returns:
- The date of the nth instance
-
getType
Get the date type- Specified by:
getTypein classGedcomxDate- Returns:
- The Date Type
-
isApproximate
public boolean isApproximate()Whether or not this date is considered approximate- Specified by:
isApproximatein classGedcomxDate- Returns:
- True if this date is approximate
-
toFormalString
Return the formal string for this date- Specified by:
toFormalStringin classGedcomxDate- Returns:
- The formal date string
-