]> git.argeo.org Git - lgpl/argeo-commons.git/blobdiff - org.argeo.api.cms/src/org/argeo/api/cms/ux/Cms2DSize.java
Merge tag 'v2.3.23' into testing
[lgpl/argeo-commons.git] / org.argeo.api.cms / src / org / argeo / api / cms / ux / Cms2DSize.java
index 9667e8352f977576065a6ddbb7f18f6164498cc9..f35e98c5022bb730b343d4e4a1b003c5c0aef0ac 100644 (file)
@@ -1,34 +1,9 @@
 package org.argeo.api.cms.ux;
 
 /** A 2D size. */
-public class Cms2DSize {
-       private Integer width;
-       private Integer height;
-
-       public Cms2DSize() {
-
-       }
-
-       public Cms2DSize(Integer width, Integer height) {
-               super();
-               this.width = width;
-               this.height = height;
+public record Cms2DSize(int width, int height) {
+       @Override
+       public String toString() {
+               return Cms2DSize.class.getSimpleName() + "[" + width + "," + height + "]";
        }
-
-       public Integer getWidth() {
-               return width;
-       }
-
-       public void setWidth(Integer width) {
-               this.width = width;
-       }
-
-       public Integer getHeight() {
-               return height;
-       }
-
-       public void setHeight(Integer height) {
-               this.height = height;
-       }
-
 }