修改方法名

dev
ZhouXY108 2024-03-15 09:29:13 +08:00
parent 4fa4b41fae
commit 39fe3d30d1
1 changed files with 4 additions and 2 deletions

View File

@ -43,6 +43,8 @@ import xyz.zhouxy.plusone.commons.annotation.Virtual;
*/ */
public class PagingAndSortingQueryParams { public class PagingAndSortingQueryParams {
// TODO 【优化】 优化该工具,使之支持分别按照多个不同列的递增或递减排序。
private static final int DEFAULT_PAGE_SIZE = 15; private static final int DEFAULT_PAGE_SIZE = 15;
private int size; private int size;
@ -96,7 +98,7 @@ public class PagingAndSortingQueryParams {
} }
public final void setSize(@Nullable Integer size) { public final void setSize(@Nullable Integer size) {
this.size = size != null ? size : getDefaultSize(); this.size = size != null ? size : defaultSizeInternal();
} }
public final void setPageNum(@Nullable Long pageNum) { public final void setPageNum(@Nullable Long pageNum) {
@ -106,7 +108,7 @@ public class PagingAndSortingQueryParams {
// Setters end // Setters end
@Virtual @Virtual
protected int getDefaultSize() { protected int defaultSizeInternal() {
return DEFAULT_PAGE_SIZE; return DEFAULT_PAGE_SIZE;
} }