net.sourceforge.plantuml.salt.Position Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of plantuml-mit Show documentation
Show all versions of plantuml-mit Show documentation
PlantUML is a component that allows to quickly write diagrams from text.
// THIS FILE HAS BEEN GENERATED BY A PREPROCESSOR.
package net.sourceforge.plantuml.salt;
public class Position {
final private int row;
final private int col;
public Position(int row, int col) {
this.row = row;
this.col = col;
}
public int getRow() {
return row;
}
public int getCol() {
return col;
}
@Override
public int hashCode() {
return row * 49 + col;
}
@Override
public boolean equals(Object obj) {
final Position other = (Position) obj;
return row == other.row && col == other.col;
}
}