forked from lilishop/lilishop
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
71ed58e
commit 183b2ba
Showing
2 changed files
with
52 additions
and
8 deletions.
There are no files selected for viewing
48 changes: 48 additions & 0 deletions
48
framework/src/main/java/cn/lili/elasticsearch/EmptyPage.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
package cn.lili.elasticsearch; | ||
|
||
import org.springframework.data.domain.Pageable; | ||
import org.springframework.data.domain.Sort; | ||
|
||
public class EmptyPage implements Pageable { | ||
|
||
@Override | ||
public int getPageNumber() { | ||
return 0; | ||
} | ||
|
||
@Override | ||
public int getPageSize() { | ||
return 0; | ||
} | ||
|
||
@Override | ||
public long getOffset() { | ||
return 0; | ||
} | ||
|
||
@Override | ||
public Sort getSort() { | ||
return null; | ||
} | ||
|
||
@Override | ||
public Pageable next() { | ||
return null; | ||
} | ||
|
||
@Override | ||
public Pageable previousOrFirst() { | ||
return null; | ||
} | ||
|
||
@Override | ||
public Pageable first() { | ||
return null; | ||
} | ||
|
||
@Override | ||
public boolean hasPrevious() { | ||
return false; | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters