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()

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • 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

      public Continent getContinent()
      Returns the continent.
      Returns:
      the continent
    • setContinent

      public void setContinent​(Continent continent)
      Sets the continent.
      Parameters:
      continent - - the continent to set
    • toString

      public java.lang.String toString()
      Overrides:
      toString in class java.lang.Object