20 package net.sf.gridarta.utils;
22 import java.io.Serializable;
23 import org.jetbrains.annotations.Nullable;
30 public class Size2D implements Serializable {
65 throw new IllegalArgumentException(
"Width must be > 0");
68 throw new IllegalArgumentException(
"Height must be > 0");
76 public boolean equals(@Nullable
final Object obj) {
80 if (obj ==
null || obj.getClass() != getClass()) {
89 return height ^ width << 16 ^ width >> 16;