public class AnyIntegerUtil extends Object
| Constructor and Description |
|---|
AnyIntegerUtil() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
equals(Integer i1,
int i2) |
static boolean |
equals(Long i1,
long i2) |
static int |
next32(CharSequence num,
int unit) |
static int |
next32(int num,
int unit)
Round up to the next UNIT.
|
static int |
next32(Number num,
int unit) |
static long |
next64(CharSequence num,
long unit) |
static long |
next64(long num,
long unit)
Round up to the next UNIT.
|
static long |
next64(Number num,
long unit) |
static Integer |
obj32(CharSequence str) |
static Integer |
obj32(CharSequence str,
Integer elze) |
static Integer |
obj32(Number num) |
static Integer |
obj32(Number num,
Integer elze) |
static Long |
obj64(CharSequence str) |
static Long |
obj64(CharSequence str,
Long elze) |
static Long |
obj64(Number num) |
static Long |
obj64(Number num,
Long elze) |
static int |
prev32(CharSequence num,
int unit) |
static int |
prev32(int num,
int unit)
Round up to the previous unit.
|
static int |
prev32(Number num,
int unit) |
static long |
prev64(CharSequence num,
long unit) |
static long |
prev64(long num,
long unit)
Round up to the previous unit.
|
static long |
prev64(Number num,
long unit) |
static String |
string(Integer v) |
static String |
string(Integer v,
String elz) |
static String |
string(Long v) |
static String |
string(Long v,
String elz) |
static String |
trimToInteger(CharSequence str)
Auto convert string to number string in `[-+]?[-_0-9,]+`
|
static int |
val32(CharSequence str) |
static int |
val32(CharSequence str,
int elze) |
static int |
val32(Number num) |
static int |
val32(Number num,
int elze) |
static long |
val64(CharSequence str) |
static long |
val64(CharSequence str,
long elze) |
static long |
val64(Number num) |
static long |
val64(Number num,
long elze) |
public static long val64(CharSequence str)
public static long val64(CharSequence str, long elze)
public static long val64(Number num)
public static long val64(Number num, long elze)
public static int val32(CharSequence str)
public static int val32(CharSequence str, int elze)
public static int val32(Number num)
public static int val32(Number num, int elze)
public static Long obj64(CharSequence str)
public static Long obj64(CharSequence str, Long elze)
public static Integer obj32(CharSequence str)
public static Integer obj32(CharSequence str, Integer elze)
public static boolean equals(Long i1, long i2)
public static boolean equals(Integer i1, int i2)
public static String trimToInteger(CharSequence str)
public static int next32(CharSequence num, int unit)
public static int next32(Number num, int unit)
public static int next32(int num,
int unit)
public static long next64(CharSequence num, long unit)
public static long next64(Number num, long unit)
public static long next64(long num,
long unit)
public static int prev32(CharSequence num, int unit)
public static int prev32(Number num, int unit)
public static int prev32(int num,
int unit)
public static long prev64(CharSequence num, long unit)
public static long prev64(Number num, long unit)
public static long prev64(long num,
long unit)
Copyright © 2024. All rights reserved.