| Constructor and Description |
|---|
MathUtils() |
| Modifier and Type | Method and Description |
|---|---|
static int |
ceil(int n,
int base) |
static boolean |
isPow2(long n) |
static <T> T |
max(T a,
T b,
Comparator<T> comparator) |
static <T> T |
min(T a,
T b,
Comparator<T> comparator) |
static byte[] |
toByteArray(int value) |
static byte[] |
toByteArray(int begin,
int end) |
static byte[] |
toByteArray(long value) |
static int |
toInt(byte[] bytes) |
static long |
toLong(byte[] bytes) |
public static boolean isPow2(long n)
public static int ceil(int n,
int base)
public static byte[] toByteArray(int value)
public static int toInt(byte[] bytes)
public static byte[] toByteArray(long value)
public static long toLong(byte[] bytes)
public static byte[] toByteArray(int begin,
int end)
public static <T> T min(T a,
T b,
Comparator<T> comparator)
public static <T> T max(T a,
T b,
Comparator<T> comparator)
Copyright © 2021. All rights reserved.