Class GenresRequest
- java.lang.Object
-
- com.treescrub.spedran.ResourceCollectionRequest<Genre>
-
- com.treescrub.spedran.requests.builders.GenresRequest
-
public class GenresRequest extends ResourceCollectionRequest<Genre>
-
-
Constructor Summary
Constructors Constructor Description GenresRequest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description GenresRequestsortByName()Sorts the results alphanumerically by name.GenresRequestsortDirection(SortDirection direction)Sets the direction (ascending or descending) of the sorting.-
Methods inherited from class com.treescrub.spedran.ResourceCollectionRequest
complete
-
-
-
-
Method Detail
-
sortByName
public GenresRequest sortByName()
Sorts the results alphanumerically by name.- Returns:
- this
GenresRequestbuilder
-
sortDirection
public GenresRequest sortDirection(SortDirection direction)
Sets the direction (ascending or descending) of the sorting.- Parameters:
direction- the sort direction- Returns:
- this
UsersRequestbuilder
-
-