X-Git-Url: https://git.argeo.org/?a=blobdiff_plain;f=org.argeo.api.cms%2Fsrc%2Forg%2Fargeo%2Fapi%2Fcms%2Fux%2FCms2DSize.java;fp=org.argeo.api.cms%2Fsrc%2Forg%2Fargeo%2Fapi%2Fcms%2Fux%2FCms2DSize.java;h=f35e98c5022bb730b343d4e4a1b003c5c0aef0ac;hb=0bccba2b9f1ac5d0be1a06dcb4fe56859f641b9a;hp=1ec753a187770d4d6f67c02476754dadc6a05a9e;hpb=a3b108c64c2d33fd8c953288e638e28cb60c226a;p=lgpl%2Fargeo-commons.git diff --git a/org.argeo.api.cms/src/org/argeo/api/cms/ux/Cms2DSize.java b/org.argeo.api.cms/src/org/argeo/api/cms/ux/Cms2DSize.java index 1ec753a18..f35e98c50 100644 --- a/org.argeo.api.cms/src/org/argeo/api/cms/ux/Cms2DSize.java +++ b/org.argeo.api.cms/src/org/argeo/api/cms/ux/Cms2DSize.java @@ -1,38 +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 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; - } - +public record Cms2DSize(int width, int height) { @Override public String toString() { return Cms2DSize.class.getSimpleName() + "[" + width + "," + height + "]"; } - }