FnPeriod is a function hub class containing a lot of static methods to convert from various input objects to Period. Those static methods return functions whose output is Period and whose input can be Calendar list, BaseDateTime list, Calendar list and Long list among others.
Function name | Type | Params | Description |
---|---|---|---|
baseDateTimeFieldArrayToPeriod | Function<T[], Period> | It creates a Period represented by the given start and end instants | |
baseDateTimeFieldArrayToPeriod | Function<T[], Period> | Chronology chronology | It creates a Period with the specified Chronology. The input received by the Function must have size 2 and represents the start and end instants of the Period |
baseDateTimeFieldArrayToPeriod | Function<T[], Period> | PeriodType periodType | It creates a Period with the specified PeriodType. The input received by the Function must have size 2 and represents the start and end instants of the Period |
baseDateTimeFieldArrayToPeriod | Function<T[], Period> | PeriodType periodType Chronology chronology | It creates a Period with the specified PeriodType and Chronology. The input received by the Function must have size 2 and represents the start and end instants of the Period |
baseDateTimeFieldCollectionToPeriod | Function<Collection<? extends BaseDateTime>, Period> | It creates a Period represented by the given start and end instants | |
baseDateTimeFieldCollectionToPeriod | Function<Collection<? extends BaseDateTime>, Period> | Chronology chronology | It creates a Period with the specified Chronology. The input received by the Function must have size 2 and represents the start and end instants of the Period |
baseDateTimeFieldCollectionToPeriod | Function<Collection<? extends BaseDateTime>, Period> | PeriodType periodType | It creates a Period with the specified PeriodType. The input received by the Function must have size 2 and represents the start and end instants of the Period |
baseDateTimeFieldCollectionToPeriod | Function<Collection<? extends BaseDateTime>, Period> | PeriodType periodType Chronology chronology | It creates a Period with the specified PeriodType and Chronology. The input received by the Function must have size 2 and represents the start and end instants of the Period |
calendarFieldArrayToPeriod | Function<T[], Period> | It creates a Period represented by the given start and end instants | |
calendarFieldArrayToPeriod | Function<T[], Period> | Chronology chronology | It creates a Period with the specified Chronology. The input received by the Function must have size 2 and represents the start and end instants of the Period |
calendarFieldArrayToPeriod | Function<T[], Period> | PeriodType periodType | It creates a Period with the specified PeriodType. The input received by the Function must have size 2 and represents the start and end instants of the Period |
calendarFieldArrayToPeriod | Function<T[], Period> | PeriodType periodType Chronology chronology | It creates a Period with the specified PeriodType and Chronology. The input received by the Function must have size 2 and represents the start and end instants of the Period |
calendarFieldCollectionToPeriod | Function<Collection<? extends Calendar>, Period> | It creates a Period represented by the given start and end instants. The input received by the Function must have size 2 | |
calendarFieldCollectionToPeriod | Function<Collection<? extends Calendar>, Period> | Chronology chronology | It creates a Period with the specified Chronology. The input received by the Function must have size 2 and represents the start and end instants of the Period |
calendarFieldCollectionToPeriod | Function<Collection<? extends Calendar>, Period> | PeriodType periodType | It creates a Period with the specified PeriodType. The input received by the Function must have size 2 and represents the start and end instants of the Period |
calendarFieldCollectionToPeriod | Function<Collection<? extends Calendar>, Period> | PeriodType periodType Chronology chronology | It creates a Period with the specified PeriodType and Chronology. The input received by the Function must have size 2 and represents the start and end instants of the Period |
dateFieldArrayToPeriod | Function<T[], Period> | The function receives an Array of two Date elements used as the start and end of the Period it creates | |
dateFieldArrayToPeriod | Function<T[], Period> | Chronology chronology | The function receives an Array of two Date elements used as the start and end of the Period it creates. The Period will be created using the specified Chronology |
dateFieldArrayToPeriod | Function<T[], Period> | PeriodType periodType | The function receives an Array of two Date elements used as the start and end of the Period it creates. The Period will be created using the specified PeriodType |
dateFieldArrayToPeriod | Function<T[], Period> | PeriodType periodType Chronology chronology | The function receives an Array of two Date elements used as the start and end of the Period it creates. The Period will be created using the specified PeriodType and Chronology |
dateFieldCollectionToPeriod | Function<Collection<? extends Date>, Period> | The function receives a Collection of two Date elements used as the start and end of the Period it creates | |
dateFieldCollectionToPeriod | Function<Collection<? extends Date>, Period> | Chronology chronology | The function receives a Collection of two Date elements used as the start and end of the Period it creates. The Period will be created using the specified Chronology |
dateFieldCollectionToPeriod | Function<Collection<? extends Date>, Period> | PeriodType periodType | The function receives a Collection of two Date elements used as the start and end of the Period it creates. The Period will be created using the specified PeriodType |
dateFieldCollectionToPeriod | Function<Collection<? extends Date>, Period> | PeriodType periodType Chronology chronology | The function receives a Collection of two Date elements used as the start and end of the Period it creates. The Period will be created using the specified PeriodType and Chronology |
integerFieldArrayToPeriod | Function<Integer[], Period> | It creates a Period either:
| |
integerFieldArrayToPeriod | Function<Integer[], Period> | PeriodType periodType | It creates a Period with the specified PeriodType either:
|
integerFieldCollectionToPeriod | Function<Collection<Integer>, Period> | It creates a Period either:
| |
integerFieldCollectionToPeriod | Function<Collection<Integer>, Period> | PeriodType periodType | It creates a Period with the specified PeriodType either:
|
longFieldArrayToPeriod | Function<Long[], Period> | The given Long targets representing the time in milliseconds will be used as the start and end instants of the Period returned | |
longFieldArrayToPeriod | Function<Long[], Period> | Chronology chronology | The given Long targets representing the time in milliseconds will be used as the start and end instants of the Period returned |
longFieldArrayToPeriod | Function<Long[], Period> | PeriodType periodType | The given Long targets representing the time in milliseconds will be used as the start and end instants of the Period returned |
longFieldArrayToPeriod | Function<Long[], Period> | PeriodType periodType Chronology chronology | The given Long targets representing the time in milliseconds will be used as the start and end instants of the Period returned |
longFieldCollectionToPeriod | Function<Collection<Long>, Period> | The given Long targets representing the time in milliseconds will be used as the start and end instants of the Period returned | |
longFieldCollectionToPeriod | Function<Collection<Long>, Period> | Chronology chronology | The given Long targets representing the time in milliseconds will be used as the start and end instants of the Period returned |
longFieldCollectionToPeriod | Function<Collection<Long>, Period> | PeriodType periodType | The given Long targets representing the time in milliseconds will be used as the start and end instants of the Period returned |
longFieldCollectionToPeriod | Function<Collection<Long>, Period> | PeriodType periodType Chronology chronology | The given Long targets representing the time in milliseconds will be used as the start and end instants of the Period returned |
longToPeriod | Function<Long, Period> | The function receives a Long representing the Period duration in milliseconds and creates a Period with such duration | |
longToPeriod | Function<Long, Period> | Chronology chronology | Creates a Period with the specified Chronology and, as the duration, the input received by this function (in milliseconds) |
longToPeriod | Function<Long, Period> | PeriodType periodType | Creates a Period with the specified PeriodType and, as the duration, the input received by this function (in milliseconds) |
longToPeriod | Function<Long, Period> | PeriodType periodType Chronology chronology | Creates a Period with the specified PeriodType and Chronology and, as the duration, the input received by this function (in milliseconds) |
strFieldArrayToPeriod | Function<String[], Period> | A Period is created either:
| |
strFieldArrayToPeriod | Function<String[], Period> | PeriodType periodType | A Period is created with the specified PeriodType either:
|
strFieldCollectionToPeriod | Function<Collection<String>, Period> | A Period is created either:
| |
strFieldCollectionToPeriod | Function<Collection<String>, Period> | PeriodType periodType | A Period is created with the specified PeriodType either:
|
timestampFieldArrayToPeriod | Function<Timestamp[], Period> | The function receives an Array of two Timestamp elements used as the start and end of the Period it creates | |
timestampFieldArrayToPeriod | Function<Timestamp[], Period> | Chronology chronology | The function receives an Array of two Timestamp elements used as the start and end of the Period it creates. The Period will be created using the specified Chronology |
timestampFieldArrayToPeriod | Function<Timestamp[], Period> | PeriodType periodType | The function receives an Array of two Timestamp elements used as the start and end of the Period it creates. The Period will be created using the specified PeriodType |
timestampFieldArrayToPeriod | Function<Timestamp[], Period> | PeriodType periodType Chronology chronology | The function receives an Array of two Timestamp elements used as the start and end of the Period it creates. The Period will be created using the specified specified PeriodType and Chronology |
timestampFieldCollectionToPeriod | Function<Collection<Timestamp>, Period> | The function receives a Collection of two Timestamp elements used as the start and end of the Period it creates | |
timestampFieldCollectionToPeriod | Function<Collection<Timestamp>, Period> | Chronology chronology | The function receives a Collection of two Timestamp elements used as the start and end of the Period it creates. The Period will be created using the specified Chronology |
timestampFieldCollectionToPeriod | Function<Collection<Timestamp>, Period> | PeriodType periodType | The function receives a Collection of two Timestamp elements used as the start and end of the Period it creates. The Period will be created using the specified PeriodType |
timestampFieldCollectionToPeriod | Function<Collection<Timestamp>, Period> | PeriodType periodType Chronology chronology | The function receives a Collection of two Timestamp elements used as the start and end of the Period it creates. The Period will be created using the specified specified PeriodType and Chronology |