Sophie

Sophie

distrib > Fedora > 15 > i386 > by-pkgid > ed74d01f77295a3790680cde0664dd0e > files > 27

httpunit-doc-1.7-3.fc15.noarch.rpm

package tutorial.persistence;


public class BettingPoolGame {

    BettingPoolGame() {
        _homeTeam = _awayTeam = "";
    }


    public String getHomeTeam() {
        return _homeTeam;
    }


    public void setHomeTeam( String homeTeam ) {
        if (!BettingPool.isEditable()) throw new IllegalStateException( "The pool is not editable" );
        _homeTeam = homeTeam;
    }


    public String getAwayTeam() {
        return _awayTeam;
    }


    public void setAwayTeam( String awayTeam ) {
        if (!BettingPool.isEditable()) throw new IllegalStateException( "The pool is not editable" );
        _awayTeam = awayTeam;
    }


    private String _homeTeam = "";
    private String _awayTeam = "";
}