Skip to content

Commit

Permalink
documentation for printers
Browse files Browse the repository at this point in the history
  • Loading branch information
Emily Curtin committed Nov 13, 2016
1 parent 71e6b66 commit 8c46e13
Show file tree
Hide file tree
Showing 9 changed files with 45 additions and 20 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ public DefaultFizzBuzzUpperLimitParameter() {

/**
* @param fizzBuzzUpperLimitParameterValue int
* @return
*/
public DefaultFizzBuzzUpperLimitParameter(final int fizzBuzzUpperLimitParameterValue) {
super();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,16 @@
import com.seriouscompany.business.java.fizzbuzz.packagenamingpackage.impl.strategies.adapters.FizzBuzzOutputStrategyToFizzBuzzExceptionSafeOutputStrategyAdapter;
import com.seriouscompany.business.java.fizzbuzz.packagenamingpackage.impl.stringreturners.BuzzStringReturner;

/**
* BuzzPrinter
*/
@Service
public class BuzzPrinter {

private final SystemOutFizzBuzzOutputStrategyFactory _systemOutFizzBuzzOutputStrategyFactory;

/**
* @param _systemOutFizzBuzzOutputStrategyFactory
* @param _systemOutFizzBuzzOutputStrategyFactory SystemOutFizzBuzzOutputStrategyFactory
*/
@Autowired
public BuzzPrinter(final SystemOutFizzBuzzOutputStrategyFactory _systemOutFizzBuzzOutputStrategyFactory) {
Expand All @@ -22,7 +25,7 @@ public BuzzPrinter(final SystemOutFizzBuzzOutputStrategyFactory _systemOutFizzBu
}

/**
* @return
* @return void
*/
public void printBuzz() {
final BuzzStringReturner myBuzzStringReturner = new BuzzStringReturner();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@
import com.seriouscompany.business.java.fizzbuzz.packagenamingpackage.interfaces.printers.StringPrinter;
import com.seriouscompany.business.java.fizzbuzz.packagenamingpackage.interfaces.stringreturners.StringStringReturner;

/**
* Printer for BuzzString
*/
@Service
public class BuzzStringPrinter implements StringPrinter {

Expand All @@ -29,7 +32,7 @@ public BuzzStringPrinter(final BuzzStringReturnerFactory _buzzStringReturnerFact
}

/**
* @return
* @return void
*/
public void print() {
final StringStringReturner myBuzzStringReturner = this._buzzStringReturnerFactory
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,16 @@
import com.seriouscompany.business.java.fizzbuzz.packagenamingpackage.impl.strategies.adapters.FizzBuzzOutputStrategyToFizzBuzzExceptionSafeOutputStrategyAdapter;
import com.seriouscompany.business.java.fizzbuzz.packagenamingpackage.impl.stringreturners.FizzStringReturner;

/**
* Printer for Fizz
*/
@Service
public class FizzPrinter {

private final SystemOutFizzBuzzOutputStrategyFactory _systemOutFizzBuzzOutputStrategyFactory;

/**
* @param _systemOutFizzBuzzOutputStrategyFactory
* @param _systemOutFizzBuzzOutputStrategyFactory SystemOutFizzBuzzOutputStrategyFactory
*/
@Autowired
public FizzPrinter(final SystemOutFizzBuzzOutputStrategyFactory _systemOutFizzBuzzOutputStrategyFactory) {
Expand All @@ -22,7 +25,7 @@ public FizzPrinter(final SystemOutFizzBuzzOutputStrategyFactory _systemOutFizzBu
}

/**
* @return
* @return void
*/
public void printFizz() {
final FizzStringReturner myFizzStringReturner = new FizzStringReturner();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@
import com.seriouscompany.business.java.fizzbuzz.packagenamingpackage.interfaces.printers.StringPrinter;
import com.seriouscompany.business.java.fizzbuzz.packagenamingpackage.interfaces.stringreturners.StringStringReturner;

/**
* Printer for FizzString
*/
@Service
public class FizzStringPrinter implements StringPrinter {

Expand All @@ -17,8 +20,8 @@ public class FizzStringPrinter implements StringPrinter {
private final FizzStringReturnerFactory _fizzStringReturnerFactory;

/**
* @param _fizzStringReturnerFactory
* @param _systemOutFizzBuzzOutputStrategyFactory
* @param _fizzStringReturnerFactory FizzStringReturnerFactory
* @param _systemOutFizzBuzzOutputStrategyFactory SystemOutFizzBuzzOutputStrategyFactory
*/
@Autowired
public FizzStringPrinter(final FizzStringReturnerFactory _fizzStringReturnerFactory,
Expand All @@ -29,7 +32,7 @@ public FizzStringPrinter(final FizzStringReturnerFactory _fizzStringReturnerFact
}

/**
* @return
* @return void
*/
public void print() {
final StringStringReturner myFizzStringReturner = this._fizzStringReturnerFactory
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@
import com.seriouscompany.business.java.fizzbuzz.packagenamingpackage.interfaces.printers.IntegerPrinter;
import com.seriouscompany.business.java.fizzbuzz.packagenamingpackage.interfaces.stringreturners.IntegerStringReturner;

/**
* Printer for IntegerInteger
*/
@Service
public class IntegerIntegerPrinter implements IntegerPrinter {

Expand All @@ -17,8 +20,8 @@ public class IntegerIntegerPrinter implements IntegerPrinter {
private final IntegerIntegerStringReturnerFactory _integerIntegerStringReturnerFactory;

/**
* @param _integerIntegerStringReturnerFactory
* @param _systemOutFizzBuzzOutputStrategyFactory
* @param _integerIntegerStringReturnerFactory IntegerIntegerStringReturnerFactory
* @param _systemOutFizzBuzzOutputStrategyFactory SystemOutFizzBuzzOutputStrategyFactory
*/
@Autowired
public IntegerIntegerPrinter(final IntegerIntegerStringReturnerFactory _integerIntegerStringReturnerFactory,
Expand All @@ -28,6 +31,9 @@ public IntegerIntegerPrinter(final IntegerIntegerStringReturnerFactory _integerI
this._systemOutFizzBuzzOutputStrategyFactory = _systemOutFizzBuzzOutputStrategyFactory;
}

/**
* @param theInteger
*/
public void printInteger(final int theInteger) {
final IntegerStringReturner myIntegerStringReturner =
this._integerIntegerStringReturnerFactory.createIntegerStringReturner();
Expand All @@ -40,7 +46,7 @@ public void printInteger(final int theInteger) {
}

/**
* @return
* @return void
*/
@Override
public void print() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,16 @@
import com.seriouscompany.business.java.fizzbuzz.packagenamingpackage.impl.stringreturners.IntegerIntegerStringReturner;
import com.seriouscompany.business.java.fizzbuzz.packagenamingpackage.interfaces.stringreturners.IntegerStringReturner;

/**
* IntegerPrinter
*/
@Service
public class IntegerPrinter {

private final SystemOutFizzBuzzOutputStrategyFactory _systemOutFizzBuzzOutputStrategyFactory;

/**
* @param _systemOutFizzBuzzOutputStrategyFactory
* @param _systemOutFizzBuzzOutputStrategyFactory SystemOutFizzBuzzOutputStrategyFactory
*/
@Autowired
public IntegerPrinter(final SystemOutFizzBuzzOutputStrategyFactory _systemOutFizzBuzzOutputStrategyFactory) {
Expand All @@ -23,8 +26,7 @@ public IntegerPrinter(final SystemOutFizzBuzzOutputStrategyFactory _systemOutFiz
}

/**
* @param theInteger
* @return
* @param theInteger int
*/
public void printInteger(final int theInteger) {
final IntegerStringReturner myIntegerIntegerStringReturner = new IntegerIntegerStringReturner();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,16 @@
import com.seriouscompany.business.java.fizzbuzz.packagenamingpackage.impl.strategies.adapters.FizzBuzzOutputStrategyToFizzBuzzExceptionSafeOutputStrategyAdapter;
import com.seriouscompany.business.java.fizzbuzz.packagenamingpackage.impl.stringreturners.NewLineStringReturner;

/**
* Printer for NewLine
*/
@Service
public class NewLinePrinter {

private final SystemOutFizzBuzzOutputStrategyFactory _systemOutFizzBuzzOutputStrategyFactory;

/**
* @param _systemOutFizzBuzzOutputStrategyFactory
* @param _systemOutFizzBuzzOutputStrategyFactory SystemOutFizzBuzzOutputStrategyFactory
*/
@Autowired
public NewLinePrinter(final SystemOutFizzBuzzOutputStrategyFactory _systemOutFizzBuzzOutputStrategyFactory) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@
import com.seriouscompany.business.java.fizzbuzz.packagenamingpackage.interfaces.printers.StringPrinter;
import com.seriouscompany.business.java.fizzbuzz.packagenamingpackage.interfaces.stringreturners.StringStringReturner;

/**
* Printer for NewLineString
*/
@Service
public class NewLineStringPrinter implements StringPrinter {

Expand All @@ -17,8 +20,8 @@ public class NewLineStringPrinter implements StringPrinter {
private final NewLineStringReturnerFactory _newLineStringReturnerFactory;

/**
* @param _newLineStringReturnerFactory
* @param _systemOutFizzBuzzOutputStrategyFactory
* @param _newLineStringReturnerFactory NewLineStringReturnerFactory
* @param _systemOutFizzBuzzOutputStrategyFactory SystemOutFizzBuzzOutputStrategyFactory
*/
@Autowired
public NewLineStringPrinter(final NewLineStringReturnerFactory _newLineStringReturnerFactory,
Expand All @@ -29,7 +32,7 @@ public NewLineStringPrinter(final NewLineStringReturnerFactory _newLineStringRet
}

/**
* @return
* @return void
*/
public void print() {
final StringStringReturner myNewLineStringReturner = this._newLineStringReturnerFactory
Expand All @@ -43,7 +46,7 @@ public void print() {
}

/**
* @param value
* @param value Object
*/
@Override
public void printValue(final Object value) {
Expand Down

0 comments on commit 8c46e13

Please sign in to comment.