package org.bundlemaker.core.ui.editor.dsm.widget; /** * <p> * </p> * * @author Gerd Wütherich (gerd@gerd-wuetherich.de) */ public class MatrixEvent { /** - */ private int _x; /** - */ private int _y; /** * <p> * Creates a new instance of type {@link MatrixEvent}. * </p> * * @param x * @param y */ public MatrixEvent(int x, int y) { _x = x; _y = y; } /** * <p> * </p> * * @return */ public int getX() { return _x; } /** * <p> * </p> * * @return */ public int getY() { return _y; } /** * {@inheritDoc} */ @Override public int hashCode() { final int prime = 31; int result = 1; result = prime * result + _x; result = prime * result + _y; return result; } /** * {@inheritDoc} */ @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (getClass() != obj.getClass()) return false; MatrixEvent other = (MatrixEvent) obj; if (_x != other._x) return false; if (_y != other._y) return false; return true; } }