add isEmpty and isNotEmpty
This commit is contained in:
@ -18,6 +18,24 @@ public class BasePageResult<T> {
|
||||
|
||||
protected List<T> list;
|
||||
|
||||
/**
|
||||
* 结果是否为空
|
||||
*
|
||||
* @return true 为空
|
||||
*/
|
||||
public boolean isEmpty() {
|
||||
return list.isEmpty();
|
||||
}
|
||||
|
||||
/**
|
||||
* 结果是否非空
|
||||
*
|
||||
* @return true 为非空
|
||||
*/
|
||||
public boolean isNotEmpty() {
|
||||
return !isEmpty();
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取总数据量
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user