public class If extends Object
| Modifier and Type | Method and Description |
|---|---|
static boolean |
hasText(String string) |
static boolean |
isEmpty(Collection<?> collection) |
static boolean |
isEmpty(Map<?,?> map) |
static <T> boolean |
isEmpty(T[] array) |
static boolean |
isNotEmpty(Collection<?> collection)
Deprecated.
|
static boolean |
isNotEmpty(Map<?,?> map)
Deprecated.
|
static <T> boolean |
isNotEmpty(T[] array)
Deprecated.
|
static boolean |
isNull(Object object)
判断对象是否为空
|
static boolean |
notEmpty(Collection<?> collection) |
static boolean |
notEmpty(Map<?,?> map) |
static <T> boolean |
notEmpty(T[] array) |
static boolean |
noText(String string) |
static boolean |
notNull(Object object)
判断对象是否非空
|
public static boolean isNull(Object object)
public static boolean notNull(Object object)
public static <T> boolean isEmpty(T[] array)
@Deprecated public static <T> boolean isNotEmpty(T[] array)
public static <T> boolean notEmpty(T[] array)
public static boolean isEmpty(Map<?,?> map)
@Deprecated public static boolean isNotEmpty(Map<?,?> map)
public static boolean notEmpty(Map<?,?> map)
public static boolean isEmpty(Collection<?> collection)
@Deprecated public static boolean isNotEmpty(Collection<?> collection)
public static boolean notEmpty(Collection<?> collection)
public static boolean hasText(String string)
public static boolean noText(String string)
Copyright © 2024. All rights reserved.