mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-07-21 15:09:48 +08:00
add NetUtil.isopen
This commit is contained in:
@@ -1,9 +1,9 @@
|
||||
package cn.hutool.db;
|
||||
|
||||
import java.util.ArrayList;
|
||||
|
||||
import cn.hutool.core.util.PageUtil;
|
||||
|
||||
import java.util.ArrayList;
|
||||
|
||||
/**
|
||||
* 分页数据结果集
|
||||
*
|
||||
@@ -169,6 +169,6 @@ public class PageResult<T> extends ArrayList<T> {
|
||||
* @return 是否最后一页
|
||||
*/
|
||||
public boolean isLast() {
|
||||
return this.page >= this.totalPage;
|
||||
return this.page >= (this.totalPage - 1);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user