From e6357b5cd6dd124632dc90604cb05790a42f00db Mon Sep 17 00:00:00 2001 From: mjkhan21 Date: Wed, 13 Dec 2023 14:17:27 +0900 Subject: [PATCH] =?UTF-8?q?=ED=8E=98=EC=9D=B4=EC=A7=95=20=EC=A0=95?= =?UTF-8?q?=EB=B3=B4=20=EC=84=A4=EC=A0=95=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../cokr/xit/foundation/data/paging/Pageable.java | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/main/java/cokr/xit/foundation/data/paging/Pageable.java b/src/main/java/cokr/xit/foundation/data/paging/Pageable.java index 98f278b..4217bec 100644 --- a/src/main/java/cokr/xit/foundation/data/paging/Pageable.java +++ b/src/main/java/cokr/xit/foundation/data/paging/Pageable.java @@ -76,20 +76,20 @@ public interface Pageable { @SuppressWarnings("unchecked") Map params = (Map)obj; return new Pageable.Info( - Pageable.getFetchSize(params), - Pageable.getPageNum(params) + Pageable.getPageNum(params), + Pageable.getFetchSize(params) ); } else if (obj instanceof QueryRequest) { QueryRequest req = (QueryRequest)obj; return new Pageable.Info( - req.getFetchSize(), - req.getPageNum() + req.getPageNum(), + req.getFetchSize() ); } else if (obj instanceof Pageable) { Pageable pageable = (Pageable)obj; return new Pageable.Info( - pageable.getFetchSize(), - pageable.getPageNum() + pageable.getPageNum(), + pageable.getFetchSize() ); } else return null;