Package battleship.view.matrixprinter
Class PrettyMatrixPrinter
java.lang.Object
battleship.view.matrixprinter.PrettyMatrixPrinter
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
PrettyMatrixPrinter
public PrettyMatrixPrinter()
-
-
Method Details
-
print
Prints the table with DEFAULT_PRINTER.- Parameters:
table
- table to print- Returns:
- String
-
print
Prints the table with specified printer.- Type Parameters:
T
- type of data in table- Parameters:
table
- table to printprinter
- printer- Returns:
- String
- Throws:
IllegalArgumentException
- if no tabular data provided or no instance of Printer provided
-