- java.lang.Object
-
- com.ejlchina.okhttps.Platform
-
public class Platform extends Object
-
-
字段概要
字段 修饰符和类型 字段 说明 static intANDROID_SDK_INTAndroid 的 SDK 版本,若不是 Android 平台,则为 0
-
构造器概要
构造器 构造器 说明 Platform()
-
方法概要
所有方法 静态方法 具体方法 修饰符和类型 方法 说明 static <K,V>
voidforEach(Map<K,V> map, BiConsumer<? super K,? super V> action)static booleanisBlank(String str)判断字符串是否为 null 或 空static booleanisNotBlank(String str)判断字符串是否非空static voidlogError(String message)static voidlogError(String message, Throwable t)static voidlogInfo(String message)
-
-
-
方法详细资料
-
logInfo
public static void logInfo(String message)
-
logError
public static void logError(String message)
-
forEach
public static <K,V> void forEach(Map<K,V> map, BiConsumer<? super K,? super V> action)
-
isBlank
public static boolean isBlank(String str)
判断字符串是否为 null 或 空- 参数:
str- 待判断的字符串- 返回:
- str 是否是空白字符串
- 从以下版本开始:
- v3.5.0
-
isNotBlank
public static boolean isNotBlank(String str)
判断字符串是否非空- 参数:
str- 待判断的字符串- 返回:
- str 是否是非空字符串
- 从以下版本开始:
- v3.5.0
-
-