public final class Validate extends Object
author: Wuwenbin
date: 2016年8月31日
time: 下午2:08:22
| 构造器和说明 |
|---|
Validate() |
| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
isEmpty(Object object)
检验对象是否为空,String 中只有空格在对象中也算空.
|
boolean |
isEmptyCollection(Collection<?> collection)
判断集合是否为空
|
boolean |
isEmptyMap(Map map)
判断map集合是否为空
|
boolean |
isEmptyString(String string)
判断字符串是否为空
|
<T> boolean |
isNotEmptyArray(T[] array)
判断数组是否不为空
|
boolean |
isNotEmptyCollection(Collection<?> collection)
判断集合是否不为空
|
boolean |
isNotEmptyMap(Map map)
判断map集合是否不为空
|
boolean |
isNotEmptyString(String string)
判断字符串是否不为空
|
public <T> boolean isNotEmptyArray(T[] array)
array - public boolean isEmptyString(String string)
string - public boolean isNotEmptyString(String string)
string - public boolean isEmptyCollection(Collection<?> collection)
collection - public boolean isNotEmptyCollection(Collection<?> collection)
collection - public boolean isNotEmptyMap(Map map)
map - public boolean isEmptyMap(Map map)
map - public boolean isEmpty(Object object)
object - Copyright © 2017. All rights reserved.