Skip to content

Commit 49abe08

Browse files
committed
chore: 移除无用的代码
1 parent 18f4f84 commit 49abe08

File tree

1 file changed

+0
-63
lines changed

1 file changed

+0
-63
lines changed

eaphone-spring-data-query-jpa/src/main/java/com/eaphonetech/common/datatables/jpa/AbstractPredicateBuilder.java

Lines changed: 0 additions & 63 deletions
Original file line numberDiff line numberDiff line change
@@ -74,67 +74,4 @@ public Pageable createPageable() {
7474
}
7575

7676
public abstract T build();
77-
78-
private class DataTablesPageRequest implements Pageable {
79-
private final int offset;
80-
private final int limit;
81-
private final Sort sort;
82-
83-
DataTablesPageRequest(int offset, int limit, Sort sort) {
84-
this.offset = offset;
85-
this.limit = limit;
86-
this.sort = sort;
87-
}
88-
89-
@Override
90-
public long getOffset() {
91-
return offset;
92-
}
93-
94-
@Override
95-
public int getPageSize() {
96-
return limit;
97-
}
98-
99-
@Override
100-
@NonNull
101-
public Sort getSort() {
102-
return sort;
103-
}
104-
105-
@Override
106-
@NonNull
107-
public Pageable next() {
108-
throw new UnsupportedOperationException();
109-
}
110-
111-
@Override
112-
@NonNull
113-
public Pageable previousOrFirst() {
114-
throw new UnsupportedOperationException();
115-
}
116-
117-
@Override
118-
@NonNull
119-
public Pageable first() {
120-
throw new UnsupportedOperationException();
121-
}
122-
123-
@Override
124-
public boolean hasPrevious() {
125-
throw new UnsupportedOperationException();
126-
}
127-
128-
@Override
129-
public int getPageNumber() {
130-
throw new UnsupportedOperationException();
131-
}
132-
133-
@Override
134-
public Pageable withPage(int pageNumber) {
135-
return PageRequest.of(pageNumber, limit, sort);
136-
}
137-
138-
}
139-
14077
}

0 commit comments

Comments
 (0)