toString method
Returns a nine-character String
representation of this IntersectionMatrix
.
@return the nine dimension symbols of this IntersectionMatrix
in row-major order.
Implementation
String toString() {
String base = "123456789";
for (int ai = 0; ai < 3; ai++) {
for (int bi = 0; bi < 3; bi++) {
base = StringUtils.replaceCharAt(
base, 3 * ai + bi, Dimension.toDimensionSymbol(matrix[ai][bi]));
}
}
return base;
}