Class MatchResult

java.lang.Object
com.sportdataapi.data.MatchResult

public class MatchResult
extends java.lang.Object
Match results in a match.
Author:
ralph
  • Constructor Summary

    Constructors 
    Constructor Description
    MatchResult()
    Constructor.
    MatchResult​(int homeScore, int guestScore)
    Constructor.
  • Method Summary

    Modifier and Type Method Description
    int getGuestScore()
    Returns the guestScore.
    int getHomeScore()
    Returns the homeScore.
    void setGuestScore​(int guestScore)
    Sets the guestScore.
    void setHomeScore​(int homeScore)
    Sets the homeScore.
    java.lang.String toString()

    Methods inherited from class java.lang.Object

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

    • MatchResult

      public MatchResult()
      Constructor.
    • MatchResult

      public MatchResult​(int homeScore, int guestScore)
      Constructor.
      Parameters:
      homeScore - - score of home team
      guestScore - - score of guest team
  • Method Details

    • getHomeScore

      public int getHomeScore()
      Returns the homeScore.
      Returns:
      the homeScore
    • setHomeScore

      public void setHomeScore​(int homeScore)
      Sets the homeScore.
      Parameters:
      homeScore - the homeScore to set
    • getGuestScore

      public int getGuestScore()
      Returns the guestScore.
      Returns:
      the guestScore
    • setGuestScore

      public void setGuestScore​(int guestScore)
      Sets the guestScore.
      Parameters:
      guestScore - the guestScore to set
    • toString

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