| Constructor | Description |
|---|---|
MathUtils() |
| Modifier and Type | Method | Description |
|---|---|---|
static int |
ceil(int n,
int base) |
|
static boolean |
isPow2(long n) |
|
static long |
pow2(int exp) |
|
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 long pow2(int exp)
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)
Copyright © 2018. All rights reserved.