public class HexUtil extends Object
| 构造器和说明 |
|---|
HexUtil() |
| 限定符和类型 | 方法和说明 |
|---|---|
static <T> T |
checkNotNull(T t)
验证对象不为null
|
static void |
checkState(boolean status) |
static byte[] |
decode(String hexString)
对16进制编码的字符串进行解码。
|
static String |
encode(byte[] src)
对字节数据进行16进制编码。
|
static boolean |
isAndroidRuntime() |
public static String encode(byte[] src)
src - 源字节数组public static byte[] decode(String hexString)
hexString - 源字串public static <T> T checkNotNull(T t)
t - 对象public static boolean isAndroidRuntime()
public static void checkState(boolean status)
Copyright © 2021. All rights reserved.