package arez.dom;

/**
 * A class containing width and height dimensions.
 */
public final class Dimension
{
  private final int _width;
  private final int _height;

  /**
   * Create the dimension object.
   *
   * @param width  the width.
   * @param height the height.
   */
  public Dimension( final int width, final int height )
  {
    _width = width;
    _height = height;
  }

  /**
   * Return the width.
   *
   * @return the width.
   */
  public int getWidth()
  {
    return _width;
  }

  /**
   * Return the height.
   *
   * @return the height.
   */
  public int getHeight()
  {
    return _height;
  }

  @Override
  public boolean equals( final Object o )
  {
    if ( o instanceof Dimension )
    {
      final Dimension other = (Dimension) o;
      return other._width == _width && other._height == _height;
    }
    else
    {
      return false;
    }
  }
}

@@ -12,16 +12,43 @@
 z.dom;%0A%0A
+import java.util.Objects;%0A%0A
 /**%0A * A
@@ -900,11 +900,100 @@
    %7D%0A  %7D
+%0A%0A  @Override%0A  public int hashCode()%0A  %7B%0A    return Objects.hash( _width, _height );%0A  %7D
 %0A%7D%0A

IMplement hashCode to eliminate warning