Class PlatformsRequest
- java.lang.Object
-
- com.treescrub.spedran.ResourceCollectionRequest<Platform>
-
- com.treescrub.spedran.requests.builders.PlatformsRequest
-
public class PlatformsRequest extends ResourceCollectionRequest<Platform>
A request builder to get allPlatforms matching the set filters.
-
-
Constructor Summary
Constructors Constructor Description PlatformsRequest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PlatformsRequestsortByName()Sorts the results alphanumerically by the platform name.PlatformsRequestsortByReleaseYear()Sorts the results by the year the platform was released.PlatformsRequestsortDirection(SortDirection direction)Sets the direction (ascending or descending) of the sorting.-
Methods inherited from class com.treescrub.spedran.ResourceCollectionRequest
complete
-
-
-
-
Method Detail
-
sortByName
public PlatformsRequest sortByName()
Sorts the results alphanumerically by the platform name.- Returns:
- this
PlatformsRequestbuilder
-
sortByReleaseYear
public PlatformsRequest sortByReleaseYear()
Sorts the results by the year the platform was released.- Returns:
- this
PlatformsRequestbuilder
-
sortDirection
public PlatformsRequest sortDirection(SortDirection direction)
Sets the direction (ascending or descending) of the sorting.- Parameters:
direction- the sort direction- Returns:
- this
PlatformsRequestbuilder
-
-