net.sourceforge.plantuml.bpm.Coord 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.bpm;
import java.util.Objects;
public class Coord {
private final Line line;
private final Col col;
public Coord(Line line, Col row) {
this.line = Objects.requireNonNull(line);
this.col = Objects.requireNonNull(row);
}
public final Col getCol() {
return col;
}
@Override
public String toString() {
return "line=" + line + " col=" + col;
}
public final Line getLine() {
return line;
}
@Override
public int hashCode() {
return line.hashCode() + col.hashCode();
}
@Override
public boolean equals(Object obj) {
final Coord other = (Coord) obj;
return this.line == other.line && this.col == other.col;
}
}