Package com.treescrub.spedran.data
Class Region
- java.lang.Object
-
- com.treescrub.spedran.data.Resource
-
- com.treescrub.spedran.data.IdentifiableResource
-
- com.treescrub.spedran.data.IdentifiableNamedResource
-
- com.treescrub.spedran.data.Region
-
public class Region extends IdentifiableNamedResource
Historical regions of the world where games were distributed.
Name consists of a shortened country or region name and eitherNTSCorPAL.
For example:USA / NTSC.
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 use this region.RunsRequestgetRuns()Gets a newRunsRequestbuilder object to request all runs that are played in this region.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 use this region.- Returns:
- a
GamesRequestbuilder
-
getRuns
public RunsRequest getRuns()
Gets a newRunsRequestbuilder object to request all runs that are played in this region.- Returns:
- a
RunsRequestbuilder
-
-