@@ -173,6 +173,11 @@ public class Sort implements Streamable<org.springframework.data.domain.Sort.Ord
|
||||
return !isEmpty();
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isEmpty() {
|
||||
return orders.isEmpty();
|
||||
}
|
||||
|
||||
public boolean isUnsorted() {
|
||||
return !isSorted();
|
||||
}
|
||||
@@ -718,7 +723,11 @@ public class Sort implements Streamable<org.springframework.data.domain.Sort.Ord
|
||||
.map(Order::by) //
|
||||
.map(Collections::singleton) //
|
||||
.orElseGet(Collections::emptySet).iterator();
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isEmpty() {
|
||||
return !recorded.getPropertyPath().isPresent();
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||
@@ -104,6 +104,11 @@ public class QSort extends Sort implements Serializable {
|
||||
return Order.by(targetElement.toString()).with(orderSpecifier.isAscending() ? Direction.ASC : Direction.DESC);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isEmpty() {
|
||||
return orderSpecifiers.isEmpty();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return the orderSpecifier
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user