Skip to content

Commit

Permalink
Revert "chore: Add convenience list and count without Filter" (#20879)
Browse files Browse the repository at this point in the history
This reverts commit 7d13de2.

This causes problems with Hilla that does not support method overloading, as TS/JS does not support that
  • Loading branch information
Artur- authored Jan 20, 2025
1 parent 0aac285 commit 61f75cb
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 21 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,6 @@
*/
public interface CountService {

/**
* Counts the number of items, without any filtering.
*
* @return the number of items in the service
*/
default long count() {
return count(null);
}

/**
* Counts the number of items that match the given filter.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,18 +14,6 @@
* the type of object to list
*/
public interface ListService<T> {
/**
* Lists objects of the given type using the paging and sorting options
* provided in the parameters.
*
* @param pageable
* contains information about paging and sorting
* @return a list of objects or an empty list if no objects were found
*/
default List<T> list(Pageable pageable) {
return list(pageable, null);
}

/**
* Lists objects of the given type using the paging, sorting and filtering
* options provided in the parameters.
Expand Down

0 comments on commit 61f75cb

Please sign in to comment.