*
* The MIT License (MIT)
*
- * Copyright (C) 2016 Kevin Lamonte
+ * Copyright (C) 2017 Kevin Lamonte
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
}
Cell that = (Cell) rhs;
- return (super.equals(rhs)
- && (ch == that.ch));
+
+ if (ch == that.ch) {
+ return super.equals(rhs);
+ }
+ return false;
}
/**
*/
@Override
public String toString() {
- return String.format("fore: %d back: %d bold: %s blink: %s ch %c",
+ return String.format("fore: %s back: %s bold: %s blink: %s ch %c",
getForeColor(), getBackColor(), isBold(), isBlink(), ch);
}
}