File tree 2 files changed +14
-0
lines changed
src/main/java/org/springframework/data
2 files changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -173,6 +173,11 @@ public boolean isSorted() {
173
173
return !isEmpty ();
174
174
}
175
175
176
+ @ Override
177
+ public boolean isEmpty () {
178
+ return orders .isEmpty ();
179
+ }
180
+
176
181
public boolean isUnsorted () {
177
182
return !isSorted ();
178
183
}
@@ -718,7 +723,11 @@ public Iterator<Order> iterator() {
718
723
.map (Order ::by ) //
719
724
.map (Collections ::singleton ) //
720
725
.orElseGet (Collections ::emptySet ).iterator ();
726
+ }
721
727
728
+ @ Override
729
+ public boolean isEmpty () {
730
+ return !recorded .getPropertyPath ().isPresent ();
722
731
}
723
732
724
733
/*
Original file line number Diff line number Diff line change @@ -104,6 +104,11 @@ private static Order toOrder(OrderSpecifier<?> orderSpecifier) {
104
104
return Order .by (targetElement .toString ()).with (orderSpecifier .isAscending () ? Direction .ASC : Direction .DESC );
105
105
}
106
106
107
+ @ Override
108
+ public boolean isEmpty () {
109
+ return orderSpecifiers .isEmpty ();
110
+ }
111
+
107
112
/**
108
113
* @return the orderSpecifier
109
114
*/
You can’t perform that action at this time.
0 commit comments