Class Player

java.lang.Object
com.sportdataapi.data.Player

public class Player
extends java.lang.Object
Player object for Sportdataapi.com.
Author:
ralph
  • Constructor Summary

    Constructors 
    Constructor Description
    Player()
    Constructor.
  • Method Summary

    Modifier and Type Method Description
    int getAge()
    Returns the age.
    RsDay getBirthday()
    Returns the birthday.
    Country getCountry()
    Returns the country.
    java.lang.String getFirstName()
    Returns the firstName.
    int getHeight()
    Returns the height.
    int getId()
    Returns the id.
    java.lang.String getImage()
    Returns the image.
    java.lang.String getLastName()
    Returns the lastName.
    int getWeight()
    Returns the weight.
    void setAge​(int age)
    Sets the age.
    void setBirthday​(RsDay birthday)
    Sets the birthday.
    void setCountry​(Country country)
    Sets the country.
    void setFirstName​(java.lang.String firstName)
    Sets the firstName.
    void setHeight​(int height)
    Sets the height.
    void setId​(int id)
    Sets the id.
    void setImage​(java.lang.String image)
    Sets the image.
    void setLastName​(java.lang.String lastName)
    Sets the lastName.
    void setWeight​(int weight)
    Sets the weight.
    java.lang.String toString()

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • Player

      public Player()
      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
    • getFirstName

      public java.lang.String getFirstName()
      Returns the firstName.
      Returns:
      the firstName
    • setFirstName

      public void setFirstName​(java.lang.String firstName)
      Sets the firstName.
      Parameters:
      firstName - the firstName to set
    • getLastName

      public java.lang.String getLastName()
      Returns the lastName.
      Returns:
      the lastName
    • setLastName

      public void setLastName​(java.lang.String lastName)
      Sets the lastName.
      Parameters:
      lastName - the lastName to set
    • getBirthday

      public RsDay getBirthday()
      Returns the birthday.
      Returns:
      the birthday
    • setBirthday

      public void setBirthday​(RsDay birthday)
      Sets the birthday.
      Parameters:
      birthday - the birthday to set
    • getAge

      public int getAge()
      Returns the age.
      Returns:
      the age
    • setAge

      public void setAge​(int age)
      Sets the age.
      Parameters:
      age - the age to set
    • getWeight

      public int getWeight()
      Returns the weight.
      Returns:
      the weight
    • setWeight

      public void setWeight​(int weight)
      Sets the weight.
      Parameters:
      weight - the weight to set
    • getHeight

      public int getHeight()
      Returns the height.
      Returns:
      the height
    • setHeight

      public void setHeight​(int height)
      Sets the height.
      Parameters:
      height - the height to set
    • getImage

      public java.lang.String getImage()
      Returns the image.
      Returns:
      the image
    • setImage

      public void setImage​(java.lang.String image)
      Sets the image.
      Parameters:
      image - the image to set
    • getCountry

      public Country getCountry()
      Returns the country.
      Returns:
      the country
    • setCountry

      public void setCountry​(Country country)
      Sets the country.
      Parameters:
      country - the country to set
    • toString

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