We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Size
1 parent 2cac060 commit 0b69e07Copy full SHA for 0b69e07
src/main/java/org/codejive/context/terminal/Size.java
@@ -5,6 +5,8 @@ public class Size {
5
private final int height;
6
7
public Size(int width, int height) {
8
+ assert width >= 0;
9
+ assert height >= 0;
10
this.width = width;
11
this.height = height;
12
}
@@ -16,4 +18,9 @@ public int width() {
16
18
public int height() {
17
19
return height;
20
21
+
22
+ @Override
23
+ public String toString() {
24
+ return width + "x" + height;
25
+ }
26
0 commit comments