public class Platform extends Object
| 限定符和类型 | 字段和说明 |
|---|---|
static int |
ANDROID_SDK_INT
Android 的 SDK 版本,若不是 Android 平台,则为 0
|
| 构造器和说明 |
|---|
Platform() |
| 限定符和类型 | 方法和说明 |
|---|---|
static <K,V> void |
forEach(Map<K,V> map,
BiConsumer<? super K,? super V> action) |
static boolean |
isBlank(String str)
判断字符串是否为 null 或 空
|
static boolean |
isNotBlank(String str)
判断字符串是否非空
|
static void |
logError(String message) |
static void |
logError(String message,
Throwable t) |
static void |
logInfo(String message) |
public static void logInfo(String message)
public static void logError(String message)
public static <K,V> void forEach(Map<K,V> map, BiConsumer<? super K,? super V> action)
public static boolean isBlank(String str)
str - 待判断的字符串public static boolean isNotBlank(String str)
str - 待判断的字符串Copyright © 2025 zhouxu. All rights reserved.