FnInterval is a function hub class containing a lot of static methods to convert from various input objects to Interval. Those static methods return functions whose output is Interval and whose input can be Calendar list, BaseDateTime list, Calendar list and Long list among others.
Function name | Type | Params | Description |
---|---|---|---|
baseDateTimeFieldArrayToInterval | Function<T[], Interval> | The array accepted by this function, as its input, contains two BaseDateTime objects used as the start and end of the Interval returned | |
baseDateTimeFieldArrayToInterval | Function<T[], Interval> | DateTimeZone dateTimeZone | The array accepted by this function, as its input, contains two BaseDateTime objects used as the start and end of the Interval being created (with the given DateTimeZone) |
baseDateTimeFieldArrayToInterval | Function<T[], Interval> | Chronology chronology | The array accepted by this function, as its input, contains two BaseDateTime objects used as the start and end of the Interval being created (with the given Chronology) |
baseDateTimeFieldCollectionToInterval | Function<Collection<? extends BaseDateTime>, Interval> | The two target elements accepted by this function are used as the start and end of the Interval returned | |
baseDateTimeFieldCollectionToInterval | Function<Collection<? extends BaseDateTime>, Interval> | DateTimeZone dateTimeZone | The two target elements accepted by this function are used as the start and end of the Interval being created with the given DateTimeZone |
baseDateTimeFieldCollectionToInterval | Function<Collection<? extends BaseDateTime>, Interval> | Chronology chronology | The two target elements accepted by this function are used as the start and end of the Interval being created with the given Chronology |
calendarFieldArrayToInterval | Function<T[], Interval> | It creates an Interval from the input Calendar targets representing the start and end of the Interval | |
calendarFieldArrayToInterval | Function<T[], Interval> | DateTimeZone dateTimeZone | It creates an Interval from the input Calendar targets representing the start and end. Such an Interval will be created in the given DateTimeZone |
calendarFieldArrayToInterval | Function<T[], Interval> | Chronology chronology | It creates an Interval from the input Calendar targets representing the start and end. The Interval will be created with the given Chronology |
calendarFieldCollectionToInterval | Function<Collection<? extends Calendar>, Interval> | It creates an Interval from the input Calendar targets used as the start and end of the Interval | |
calendarFieldCollectionToInterval | Function<Collection<? extends Calendar>, Interval> | DateTimeZone dateTimeZone | It creates an Interval from the input Calendar targets used as the start and end. Such an Interval will be created in the given DateTimeZone |
calendarFieldCollectionToInterval | Function<Collection<? extends Calendar>, Interval> | Chronology chronology | It creates an Interval from the input Calendar targets used as the start and end. The Interval will be created with the given Chronology |
dateFieldArrayToInterval | Function<T[], Interval> | It creates an Interval from the given Date elements. | |
dateFieldArrayToInterval | Function<T[], Interval> | DateTimeZone dateTimeZone | It creates an Interval from the input Date elements. The Interval will be created with the given DateTimeZone |
dateFieldArrayToInterval | Function<T[], Interval> | Chronology chronology | It creates an Interval from the input Date elements. The Interval will be created with the given Chronology |
dateFieldCollectionToInterval | Function<Collection<? extends Date>, Interval> | It creates an Interval from the input Date elements | |
dateFieldCollectionToInterval | Function<Collection<? extends Date>, Interval> | DateTimeZone dateTimeZone | It creates an Interval from the input Date elements. The Interval will be created with the given DateTimeZone |
dateFieldCollectionToInterval | Function<Collection<? extends Date>, Interval> | Chronology chronology | It creates an Interval from the input Date elements. The Interval will be created with the given Chronology |
integerFieldArrayToInterval | Function<Integer[], Interval> | It converts the given Integer elements into an Interval. The target Integer elements represent the start and end of the Interval. The accepted input Integer[] are:
| |
integerFieldArrayToInterval | Function<Integer[], Interval> | DateTimeZone dateTimeZone | It converts the given Integer elements into an Interval with the given DateTimeZone. The target Integer elements represent the start and end of the Interval. The accepted input Integer[] are:
|
integerFieldArrayToInterval | Function<Integer[], Interval> | Chronology chronology | It converts the given Integer elements into an Interval with the given Chronology. The target Integer elements represent the start and end of the Interval. The accepted input Integer[] are:
|
integerFieldCollectionToInterval | Function<Collection<Integer>, Interval> | It converts the input Integer elements into an Interval. The target Integer elements represent the start and end of the Interval. The accepted input Collection<Integer> collections are:
| |
integerFieldCollectionToInterval | Function<Collection<Integer>, Interval> | DateTimeZone dateTimeZone | It converts the input Integer elements into an Interval with the given DateTime. The target Integer elements represent the start and end of the Interval. The accepted input Collection<Integer> are:
|
integerFieldCollectionToInterval | Function<Collection<Integer>, Interval> | Chronology chronology | It converts the given Integer elements into an Interval. with the given Chronology The target Integer elements represent the start and end of the Interval. The accepted input Collection<Integer> are:
|
longFieldArrayToInterval | Function<Long[], Interval> | The input Long targets representing the time in milliseconds will be used as the start and end of the Interval returned | |
longFieldArrayToInterval | Function<Long[], Interval> | DateTimeZone dateTimeZone | The input Long targets representing the time in milliseconds will be used as the start and end of the Interval returned. The Interval will be created with the given DateTimeZone |
longFieldArrayToInterval | Function<Long[], Interval> | Chronology chronology | The input Long targets representing the time in milliseconds will be used as the start and end of the Interval returned. The Interval will be created with the given Chronology |
longFieldCollectionToInterval | Function<Collection<Long>, Interval> | The input Long targets representing the time in milliseconds will be used as the start and end of the Interval returned | |
longFieldCollectionToInterval | Function<Collection<Long>, Interval> | DateTimeZone dateTimeZone | The input Long targets representing the time in milliseconds will be used as the start and end of the Interval returned. The Interval will be created with the given DateTimeZone |
longFieldCollectionToInterval | Function<Collection<Long>, Interval> | Chronology chronology | The input Long targets representing the time in milliseconds will be used as the start and end of the Interval returned. The Interval will be created with the given Chronology |
strFieldArrayToInterval | Function<String[], Interval> | It converts the input String elements into an Interval. The target String elements represent the start and end of the Interval. The accepted input String[] are:
| |
strFieldArrayToInterval | Function<String[], Interval> | DateTimeZone dateTimeZone | It converts the input String elements into an Interval. The target String elements represent the start and end of the Interval. The accepted input String[] are:
|
strFieldArrayToInterval | Function<String[], Interval> | Chronology chronology | It converts the given String elements into an Interval. The target String elements represent the start and end of the Interval. The accepted input String[] are:
|
strFieldArrayToInterval | Function<String[], Interval> | String pattern | It converts the given String elements into an Interval. The target String elements represent the start and end of the Interval. The accepted input String[] are:
|
strFieldArrayToInterval | Function<String[], Interval> | String pattern DateTimeZone dateTimeZone | It converts the input String elements into an Interval. The target String elements represent the start and end of the Interval. The accepted input String[] are:
|
strFieldArrayToInterval | Function<String[], Interval> | String pattern Chronology chronology | It converts the input String elements into an Interval. The target String elements represent the start and end of the Interval. The accepted input String[] are:
|
strFieldArrayToInterval | Function<String[], Interval> | String pattern Locale locale | It converts the input String elements into an Interval. The target String elements represent the start and end of the Interval. The accepted input String[] are:
|
strFieldArrayToInterval | Function<String[], Interval> | String pattern String locale | It converts the given String elements into an Interval. The target String elements represent the start and end of the Interval. The accepted input String[] are:
|
strFieldArrayToInterval | Function<String[], Interval> | String pattern Locale locale DateTimeZone dateTimeZone | It converts the given String elements into an Interval. The target String elements represent the start and end of the Interval. The accepted input String[] are:
|
strFieldArrayToInterval | Function<String[], Interval> | String pattern String locale DateTimeZone dateTimeZone | It converts the given String elements into an Interval. The target String elements represent the start and end of the Interval. The accepted input String[] are:
|
strFieldArrayToInterval | Function<String[], Interval> | String pattern Locale locale Chronology chronology | It converts the given String elements into an Interval. The target String elements represent the start and end of the Interval. The accepted input String[] are:
|
strFieldArrayToInterval | Function<String[], Interval> | String pattern String locale Chronology chronology | It converts the given String elements into an Interval. The target String elements represent the start and end of the Interval. The accepted input String[] are:
|
strFieldCollectionToInterval | Function<Collection<String>, Interval> | It converts the input String elements into an Interval. The target String elements represent the start and end of the Interval The accepted input Collection<String> are:
| |
strFieldCollectionToInterval | Function<Collection<String>, Interval> | DateTimeZone dateTimeZone | It converts the input String elements into an Interval. The target String elements represent the start and end of the Interval. The accepted input CCollection<String> are:
|
strFieldCollectionToInterval | Function<Collection<String>, Interval> | Chronology chronology | It converts the input String elements into an Interval. The target String elements represent the start and end of the Interval. The accepted input Collection<String> are:
|
strFieldCollectionToInterval | Function<Collection<String>, Interval> | String pattern | It creates an Interval using the target String elements as the start and end. The given pattern will be used to create the DateTime objects from the given String elements. If the pattern includes either, the name of the month or day of week, a conversion accepting a Locale must be used instead |
strFieldCollectionToInterval | Function<Collection<String>, Interval> | String pattern DateTimeZone dateTimeZone | It creates an Interval from the given start and end String elements using the given pattern parameter and with the given DateTimeZone. If the pattern includes either, the name of the month or day of week, a conversion accepting a Locale must be used instead |
strFieldCollectionToInterval | Function<Collection<String>, Interval> | String pattern Chronology chronology | It creates an Interval from the given start and end String elements using the given pattern parameter and with the given Chronology. If the pattern includes either, the name of the month or day of week, a conversion accepting a Locale must be used instead |
strFieldCollectionToInterval | Function<Collection<String>, Interval> | String pattern Locale locale | It creates an Interval from the given String elements using the given pattern and Locale parameters |
strFieldCollectionToInterval | Function<Collection<String>, Interval> | String pattern String locale | It creates an Interval from the given String elements using the given pattern and Locale parameters |
strFieldCollectionToInterval | Function<Collection<String>, Interval> | String pattern Locale locale DateTimeZone dateTimeZone | It creates an Interval from the given String elements using the given pattern and Locale parameters. The given DateTimeZone will be used to create the Interval. |
strFieldCollectionToInterval | Function<Collection<String>, Interval> | String pattern String locale DateTimeZone dateTimeZone | It creates an Interval from the given String elements using the given pattern and Locale parameters. The given DateTimeZone will be used to create the Interval. |
strFieldCollectionToInterval | Function<Collection<String>, Interval> | String pattern Locale locale Chronology chronology | It creates an Interval from the input String elements using the given pattern and Locale parameters. The given Chronology will be used to create the Interval. |
strFieldCollectionToInterval | Function<Collection<String>, Interval> | String pattern String locale Chronology chronology | It creates an Interval from the input String elements using the given pattern and Locale parameters. The given Chronology will be used to create the Interval. |
timestampFieldArrayToInterval | Function<Timestamp[], Interval> | The input Timestamp target elements will be used as the start and end of the Interval returned | |
timestampFieldArrayToInterval | Function<Timestamp[], Interval> | DateTimeZone dateTimeZone | The input Timestamp target elements will be used as the start and end of the Interval returned with the given DateTimeZone |
timestampFieldArrayToInterval | Function<Timestamp[], Interval> | Chronology chronology | The input Timestamp target elements will be used as the start and end of the Interval returned with the given Chronology |
timestampFieldCollectionToInterval | Function<Collection<Timestamp>, Interval> | The input Timestamp target elements will be used as the start and end of the Interval returned | |
timestampFieldCollectionToInterval | Function<Collection<Timestamp>, Interval> | DateTimeZone dateTimeZone | The input Timestamp target elements will be used as the start and end of the Interval returned with the given DateTimeZone |
timestampFieldCollectionToInterval | Function<Collection<Timestamp>, Interval> | Chronology chronology | The input Timestamp target elements will be used as the start and end of the Interval returned with the given Chronology |