src/main/java/biz/pavonis/golservice/api/GameOfLifeServiceBuilder.java
public GameOfLifeService build() {
        if (tickInterval < 1) {
            throw new InvalidBuilderDataException("Tick interval must be greater than 0!");
        }
        if (width < 1) {
            throw new InvalidBuilderDataException("Width must be greater than 0!");
        }
        if (height < 1) {
            throw new InvalidBuilderDataException("Height must be greater than 0!");
        }
        if (initialState != null && (initialState.length < 1 || initialState[0].length < 1)) {
            throw new InvalidBuilderDataException("The given initial state is too small (min 1 * 1 requried).");
        }
        if (initialState != null && initialState.length != height) {
            throw new InvalidBuilderDataException("The give n initial state has different height than the provided height.");
        }
        if (initialState != null && initialState[0].length != width) {
            throw new InvalidBuilderDataException("The give n initial state has different width than the provided height.");
        }
        return new GameOfLifeServiceImpl(this);
    }
/**
     * Creates a {@link GameOfLifeService} using this builder.
     * 
     * @return
     */
Creates a  GameOfLifeService using this builder.

@return
Creates a GameOfLifeService using this builder . @return
public GameOfLifeService build() {
        if (tickInterval < 1) {
            throw new InvalidBuilderDataException("Tick interval must be greater than 0!");
        }
        if (width < 1) {
            throw new InvalidBuilderDataException("Width must be greater than 0!");
        }
        if (height < 1) {
            throw new InvalidBuilderDataException("Height must be greater than 0!");
        }
        if (initialState != null && (initialState.length < 1 || initialState[0].length < 1)) {
            throw new InvalidBuilderDataException("The given initial state is too small (min 1 * 1 requried).");
        }
        if (initialState != null && initialState.length != height) {
            throw new InvalidBuilderDataException("The give n initial state has different height than the provided height.");
        }
        if (initialState != null && initialState[0].length != width) {
            throw new InvalidBuilderDataException("The give n initial state has different width than the provided height.");
        }
        return new GameOfLifeServiceImpl(this);
    }
public GameOfLifeService build ( ) { if ( tickInterval < 1 ) { throw new InvalidBuilderDataException ( "Tick interval must be greater than 0!" ) ; } if ( width < 1 ) { throw new InvalidBuilderDataException ( "Width must be greater than 0!" ) ; } if ( height < 1 ) { throw new InvalidBuilderDataException ( "Height must be greater than 0!" ) ; } if ( initialState != null && ( initialState . length < 1 || initialState [ 0 ] . length < 1 ) ) { throw new InvalidBuilderDataException ( "The given initial state is too small (min 1 * 1 requried)." ) ; } if ( initialState != null && initialState . length != height ) { throw new InvalidBuilderDataException ( "The give n initial state has different height than the provided height." ) ; } if ( initialState != null && initialState [ 0 ] . length != width ) { throw new InvalidBuilderDataException ( "The give n initial state has different width than the provided height." ) ; } return new GameOfLifeServiceImpl ( this ) ; }
Creates a {@link GameOfLifeService} using this builder.
Creates a { @link GameOfLifeService } using this builder .