package football2
- Alphabetic
- Public
- Protected
Type Members
- class Club extends AnyRef
The class
Club
represents football clubs in a match statistics system.The class
Club
represents football clubs in a match statistics system. Only some very basic information for each club is recorded. A club object is immutable once created. - class Match extends AnyRef
The class
Match
represents match results in a football match statistics program.The class
Match
represents match results in a football match statistics program. A match is played between teams from two clubs: a home club and an away club. Goals scored by either team can be added to the match object.The class is expected to be used so that a match object with no goals is initially created as a real-life match starts. Goals are added incrementally as the match progresses. (A match object has mutable state.)
- class Player extends AnyRef
The class
Player
represents football players in a match statistics program.The class
Player
represents football players in a match statistics program. Only some very basic information about each player is recorded.A player object is immutable after creation.
Value Members
- object ExampleLeague
The singleton object
ExampleLeague
provides constants that can be used to experiment with the other classes of this package.The singleton object
ExampleLeague
provides constants that can be used to experiment with the other classes of this package. More specifically, a bunch ofClub
andPlayer
objects are provided.Usage examples (which assume the command
import ExampleLeague._
has been given):new Player("T. Teekkari", ARS)
new Match(LIV, SOT)