| Modifier and Type | Field and Description |
|---|---|
| private static final BigInteger | |
| private static final BigInteger | |
| private static final BigInteger | |
| private static final BigInteger | |
| private static final BigInteger | |
| private static final BigInteger | |
| public static final BigInteger | NANOS_PER_DAY_BI
The number of nanoseconds per day as BigInteger. |
| private static final BigInteger | |
| private static final BigInteger | |
| private static final BigInteger |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static StringBuilder | Returns: the specified string builderstring builder to append to buff, IntervalQualifier qualifier of the interval qualifier, boolean whether interval is negative negative, long the value of leading field leading, long the value of all remaining fields remaining)Formats interval as a string and appends it to a specified string builder. |
| public static long | Returns: days, or 0qualifier qualifier, boolean whether interval is negative negative, long value of leading field leading, long values of all remaining fields remaining)Returns days value of interval, if any. |
| public static long | Returns: hours, or 0qualifier qualifier, boolean whether interval is negative negative, long value of leading field leading, long values of all remaining fields remaining)Returns hours value of interval, if any. |
| public static ValueInterval | Returns: the interval valuethe qualifier of interval qualifier, BigInteger absolute value in months for year-month intervals, in
nanoseconds for day-time intervals absolute)Converts absolute value to an interval value. |
| private static ValueInterval | |
| public static BigInteger | Returns: absolute value in months for year-month intervals, in nanoseconds for day-time intervalsthe interval value interval)Converts interval value to an absolute value. |
| private static BigInteger | |
| private static BigInteger | |
| private static long | |
| public static long | Returns: minutes, or 0qualifier qualifier, boolean whether interval is negative negative, long value of leading field leading, long values of all remaining fields remaining)Returns minutes value of interval, if any. |
| public static long | Returns: months, or 0qualifier qualifier, boolean whether interval is negative negative, long value of leading field leading, long values of all remaining fields remaining)Returns months value of interval, if any. |
| public static long | Returns: nanoseconds, or 0qualifier qualifier, boolean whether interval is negative negative, long value of leading field leading, long values of all remaining fields remaining)Returns nanoseconds value of interval, if any. |
| public static ValueInterval | Returns: the interval value. Type of value can be different from the specified qualifier.the default qualifier to use if string does not have one qualifier, String the string with type information to parse s)Parses the specified string as |
| public static ValueInterval | Returns: the interval valuethe qualifier of interval qualifier, boolean whether the interval is negative negative, String the string to parse s)Parses the specified string as |
| private static ValueInterval | |
| private static long | |
| private static long | |
| private static long | |
| private static int | |
| private static int | |
| public static boolean | Returns: fixed value of negative fieldqualifier qualifier, boolean whether interval is negative negative, long value of leading field leading, long values of all remaining fields remaining)Ensures that all fields in interval are valid. |
| public static long | Returns: years, or 0qualifier qualifier, boolean whether interval is negative negative, long value of leading field leading, long values of all remaining fields remaining)Returns years value of interval, if any. |
| HOURS_PER_DAY_BI | back to summary |
|---|---|
| private static final BigInteger HOURS_PER_DAY_BI | |
| LEADING_MAX | back to summary |
|---|---|
| private static final BigInteger LEADING_MAX | |
| LEADING_MIN | back to summary |
|---|---|
| private static final BigInteger LEADING_MIN | |
| MINUTES_PER_DAY_BI | back to summary |
|---|---|
| private static final BigInteger MINUTES_PER_DAY_BI | |
| MINUTES_PER_HOUR_BI | back to summary |
|---|---|
| private static final BigInteger MINUTES_PER_HOUR_BI | |
| MONTHS_PER_YEAR_BI | back to summary |
|---|---|
| private static final BigInteger MONTHS_PER_YEAR_BI | |
| NANOS_PER_DAY_BI | back to summary |
|---|---|
| public static final BigInteger NANOS_PER_DAY_BI The number of nanoseconds per day as BigInteger. | |
| NANOS_PER_HOUR_BI | back to summary |
|---|---|
| private static final BigInteger NANOS_PER_HOUR_BI | |
| NANOS_PER_MINUTE_BI | back to summary |
|---|---|
| private static final BigInteger NANOS_PER_MINUTE_BI | |
| NANOS_PER_SECOND_BI | back to summary |
|---|---|
| private static final BigInteger NANOS_PER_SECOND_BI | |
| IntervalUtils | back to summary |
|---|---|
| private IntervalUtils() | |
| appendInterval | back to summary |
|---|---|
| public static StringBuilder appendInterval(StringBuilder buff, IntervalQualifier qualifier, boolean negative, long leading, long remaining) Formats interval as a string and appends it to a specified string builder.
| |
| daysFromInterval | back to summary |
|---|---|
| public static long daysFromInterval(IntervalQualifier qualifier, boolean negative, long leading, long remaining) Returns days value of interval, if any.
| |
| hoursFromInterval | back to summary |
|---|---|
| public static long hoursFromInterval(IntervalQualifier qualifier, boolean negative, long leading, long remaining) Returns hours value of interval, if any.
| |
| intervalFromAbsolute | back to summary |
|---|---|
| public static ValueInterval intervalFromAbsolute(IntervalQualifier qualifier, BigInteger absolute) Converts absolute value to an interval value.
| |
| intervalFromAbsolute | back to summary |
|---|---|
| private static ValueInterval intervalFromAbsolute(IntervalQualifier qualifier, BigInteger absolute, BigInteger divisor) | |
| intervalToAbsolute | back to summary |
|---|---|
| public static BigInteger intervalToAbsolute(ValueInterval interval) Converts interval value to an absolute value.
| |
| intervalToAbsolute | back to summary |
|---|---|
| private static BigInteger intervalToAbsolute(ValueInterval interval, BigInteger multiplier, BigInteger totalMultiplier) | |
| intervalToAbsolute | back to summary |
|---|---|
| private static BigInteger intervalToAbsolute(ValueInterval interval, BigInteger multiplier) | |
| leadingExact | back to summary |
|---|---|
| private static long leadingExact(BigInteger absolute) | |
| minutesFromInterval | back to summary |
|---|---|
| public static long minutesFromInterval(IntervalQualifier qualifier, boolean negative, long leading, long remaining) Returns minutes value of interval, if any.
| |
| monthsFromInterval | back to summary |
|---|---|
| public static long monthsFromInterval(IntervalQualifier qualifier, boolean negative, long leading, long remaining) Returns months value of interval, if any.
| |
| nanosFromInterval | back to summary |
|---|---|
| public static long nanosFromInterval(IntervalQualifier qualifier, boolean negative, long leading, long remaining) Returns nanoseconds value of interval, if any.
| |
| parseFormattedInterval | back to summary |
|---|---|
| public static ValueInterval parseFormattedInterval(IntervalQualifier qualifier, String s) Parses the specified string as
| |
| parseInterval | back to summary |
|---|---|
| public static ValueInterval parseInterval(IntervalQualifier qualifier, boolean negative, String s) Parses the specified string as
| |
| parseInterval2 | back to summary |
|---|---|
| private static ValueInterval parseInterval2(IntervalQualifier qualifier, String s, char ch, int max, boolean negative) | |
| parseIntervalLeading | back to summary |
|---|---|
| private static long parseIntervalLeading(String s, int start, int end, boolean negative) | |
| parseIntervalRemaining | back to summary |
|---|---|
| private static long parseIntervalRemaining(String s, int start, int end, int max) | |
| parseIntervalRemainingSeconds | back to summary |
|---|---|
| private static long parseIntervalRemainingSeconds(String s, int start) | |
| skipWS | back to summary |
|---|---|
| private static int skipWS(String s, int i) | |
| skipWSEnd | back to summary |
|---|---|
| private static int skipWSEnd(String s, int i) | |
| validateInterval | back to summary |
|---|---|
| public static boolean validateInterval(IntervalQualifier qualifier, boolean negative, long leading, long remaining) Ensures that all fields in interval are valid.
| |
| yearsFromInterval | back to summary |
|---|---|
| public static long yearsFromInterval(IntervalQualifier qualifier, boolean negative, long leading, long remaining) Returns years value of interval, if any.
| |