public abstract class ObjectUtils extends Object
| Constructor and Description |
|---|
ObjectUtils() |
| Modifier and Type | Method and Description |
|---|---|
static <T> boolean |
in(T value,
T... targetValues)
判断值是否在目标值数组中
|
static boolean |
isEmpty(Object obj)
判断对象是否为 null 或 空
|
static boolean |
isNotEmpty(Object obj)
判断对象是否不为 null 或 空
|
public static boolean isEmpty(Object obj)
obj - 对象public static boolean isNotEmpty(Object obj)
obj - 对象@SafeVarargs public static <T> boolean in(T value, T... targetValues)
T - 值类型value - 值targetValues - 目标值数组Copyright © 2021–2022 EasyJ开源社区. All rights reserved.