bsoc.division
Class DTableEntry

java.lang.Object
  |
  +--bsoc.division.DTableEntry

public class DTableEntry
extends java.lang.Object
implements Comparable, java.io.Serializable

Holds the results of one team of a division.

See Also:
Serialized Form

Constructor Summary
DTableEntry(Team t, int id)
           
 
Method Summary
 void addMatchResult(int myGoals, int theirGoals)
           
 boolean equals(java.lang.Object o)
           
 int getGoalsGot()
           
 int getGoalsShot()
           
 int getMatchCount()
           
 int getMatchesEven()
           
 int getMatchesLost()
           
 int getMatchesWon()
           
 int getPoints()
           
 Team getTeam()
           
 int getTeamId()
           
 boolean isGreaterThan(Comparable o)
           
 java.lang.String toInfoString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DTableEntry

public DTableEntry(Team t,
                   int id)
Method Detail

isGreaterThan

public boolean isGreaterThan(Comparable o)
Specified by:
isGreaterThan in interface Comparable

addMatchResult

public void addMatchResult(int myGoals,
                           int theirGoals)

getPoints

public int getPoints()

getMatchesWon

public int getMatchesWon()

getMatchesEven

public int getMatchesEven()

getMatchesLost

public int getMatchesLost()

getGoalsGot

public int getGoalsGot()

getGoalsShot

public int getGoalsShot()

getMatchCount

public int getMatchCount()

getTeamId

public int getTeamId()

getTeam

public Team getTeam()

toInfoString

public java.lang.String toInfoString()

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object