Package com.treescrub.spedran.data
Class Platform
- java.lang.Object
-
- com.treescrub.spedran.data.Resource
-
- com.treescrub.spedran.data.IdentifiableResource
-
- com.treescrub.spedran.data.IdentifiableNamedResource
-
- com.treescrub.spedran.data.Platform
-
public class Platform extends IdentifiableNamedResource
A platform which a game can be run on.
For example: PC, Xbox 360, Game Boy Advance, Amazon Fire TV, and so on.
This class is immutable and thread-safe.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description GamesRequestgetGames()Gets a newGamesRequestbuilder object to request all games that are on this platform.intgetReleaseYear()Gets the year that this platform was released.RunsRequestgetRuns()Gets a newRunsRequestbuilder object to request all runs that are on this platform.StringtoString()-
Methods inherited from class com.treescrub.spedran.data.IdentifiableNamedResource
getName
-
Methods inherited from class com.treescrub.spedran.data.IdentifiableResource
equals, getId, hashCode
-
-
-
-
Method Detail
-
getGames
public GamesRequest getGames()
Gets a newGamesRequestbuilder object to request all games that are on this platform.- Returns:
- a
GamesRequestbuilder
-
getRuns
public RunsRequest getRuns()
Gets a newRunsRequestbuilder object to request all runs that are on this platform.- Returns:
- a
RunsRequestbuilder
-
getReleaseYear
public int getReleaseYear()
Gets the year that this platform was released.- Returns:
- release year
-
-