net.sourceforge.plantuml.braille.Coords 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.braille;
public class Coords {
private final int x;
private final int y;
public Coords(int x, int y) {
this.x = x;
this.y = y;
}
@Override
public boolean equals(Object obj) {
final Coords other = (Coords) obj;
return this.x == other.x && this.y == other.y;
}
@Override
public int hashCode() {
return x + y * 8192;
}
@Override
public String toString() {
return "( " + x + " ; " + y + " )";
}
public int getX() {
return x;
}
public int getY() {
return y;
}
}