public final class NumericUtils
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static int[] |
intRange(int start,
int end)
Returns a character range from start (inclusive) to end (exclusive).
|
static long[] |
longRange(long start,
long end)
Returns a character range from start (inclusive) to end (exclusive).
|
static java.lang.Integer[] |
to(java.lang.Integer start,
java.lang.Integer end)
Returns a range from start (inclusive) to end (inclusive)
|
static java.lang.Long[] |
to(java.lang.Long start,
java.lang.Long end)
Returns a range from start (inclusive) to end (inclusive)
|
static java.lang.Integer[] |
until(java.lang.Integer start,
java.lang.Integer end)
Returns a range from start (inclusive) to end (exclusive)
|
static java.lang.Long[] |
until(java.lang.Long start,
java.lang.Long end)
Returns a range from start (inclusive) to end (exclusive)
|
public static int[] intRange(int start, int end)
java.lang.IllegalArgumentException
- When the end is before startpublic static java.lang.Integer[] until(java.lang.Integer start, java.lang.Integer end)
java.lang.NullPointerException
- An argument is nulljava.lang.IllegalArgumentException
- When the end is before startpublic static java.lang.Integer[] to(java.lang.Integer start, java.lang.Integer end)
java.lang.NullPointerException
- An argument is nulljava.lang.IllegalArgumentException
- When the end is before startpublic static long[] longRange(long start, long end)
java.lang.IllegalArgumentException
- When the end is before start, or (end-start) is larger than Integer.MAX_VALUEpublic static java.lang.Long[] until(java.lang.Long start, java.lang.Long end)
java.lang.NullPointerException
- An argument is nulljava.lang.IllegalArgumentException
- When the end is before startpublic static java.lang.Long[] to(java.lang.Long start, java.lang.Long end)
java.lang.NullPointerException
- An argument is nulljava.lang.IllegalArgumentException
- When the end is before start