Package com.sportdataapi.data
Class League
java.lang.Object
com.sportdataapi.data.League
public class League
extends java.lang.Object
League object for Sportdataapi.com.
- Author:
- ralph
-
Constructor Summary
Constructors Constructor Description League()
Constructor. -
Method Summary
Modifier and Type Method Description int
getCountryId()
Returns the countryId.int
getId()
Returns the id.java.lang.String
getName()
Returns the name.void
setCountryId(int countryId)
Sets the countryId.void
setId(int id)
Sets the id.void
setName(java.lang.String name)
Sets the name.java.lang.String
toString()
-
Constructor Details
-
League
public League()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
-
getCountryId
public int getCountryId()Returns the countryId.- Returns:
- the countryId
-
setCountryId
public void setCountryId(int countryId)Sets the countryId.- Parameters:
countryId
- - the countryId 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
-
toString
public java.lang.String toString()- Overrides:
toString
in classjava.lang.Object
-