uk.co.spudsoft.birt.emitters.excel.Coordinate Maven / Gradle / Ivy
/*************************************************************************************
* Copyright (c) 2011, 2012, 2013 James Talbut.
* [email protected]
*
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License 2.0 which is available at
* https://www.eclipse.org/legal/epl-2.0/.
*
* SPDX-License-Identifier: EPL-2.0
*
* Contributors:
* James Talbut - Initial implementation.
************************************************************************************/
package uk.co.spudsoft.birt.emitters.excel;
import java.util.Objects;
public class Coordinate {
private int row;
private int col;
public Coordinate(int row, int col) {
super();
this.row = row;
this.col = col;
}
public int getRow() {
return row;
}
public void setRow(int row) {
this.row = row;
}
public int getCol() {
return col;
}
public void setCol(int col) {
this.col = col;
}
@Override
public int hashCode() {
return Objects.hash(row, col);
}
@Override
public boolean equals(Object obj) {
if (this == obj) {
return true;
}
if ((obj == null) || (getClass() != obj.getClass())) {
return false;
}
Coordinate other = (Coordinate) obj;
if (row != other.row) {
return false;
}
if (col != other.col) {
return false;
}
return true;
}
@Override
public String toString() {
return "Coordinate [row=" + row + ", col=" + col + "]";
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy