Package com.sportdataapi.data
Class Country
java.lang.Object
com.sportdataapi.data.Country
public class Country
extends java.lang.Object
Country object for Sportdataapi.com.
- Author:
- ralph
-
Constructor Summary
Constructors Constructor Description Country()
Constructor. -
Method Summary
Modifier and Type Method Description Continent
getContinent()
Returns the continent.java.lang.String
getCountryCode()
Returns the countryCode.int
getId()
Returns the id.java.lang.String
getName()
Returns the name.void
setContinent(Continent continent)
Sets the continent.void
setCountryCode(java.lang.String countryCode)
Sets the countryCode.void
setId(int id)
Sets the id.void
setName(java.lang.String name)
Sets the name.java.lang.String
toString()
-
Constructor Details
-
Country
public Country()Constructor.
-
-
Method Details
-
getId
public int getId()Returns the id.- Returns:
- the id
-
setId
public void setId(int id)Sets the id.- Parameters:
id
- - the id to set
-
getName
public java.lang.String getName()Returns the name.- Returns:
- the name
-
setName
public void setName(java.lang.String name)Sets the name.- Parameters:
name
- - the name to set
-
getCountryCode
public java.lang.String getCountryCode()Returns the countryCode.- Returns:
- the countryCode
-
setCountryCode
public void setCountryCode(java.lang.String countryCode)Sets the countryCode.- Parameters:
countryCode
- - the countryCode to set
-
getContinent
Returns the continent.- Returns:
- the continent
-
setContinent
Sets the continent.- Parameters:
continent
- - the continent to set
-
toString
public java.lang.String toString()- Overrides:
toString
in classjava.lang.Object
-