// 
// Decompiled by Procyon v0.6.0
// 

package org.jline.terminal;

public class Cursor
{
    private final int x;
    private final int y;
    
    public Cursor(final int x, final int y) {
        this.x = x;
        this.y = y;
    }
    
    public int getX() {
        return this.x;
    }
    
    public int getY() {
        return this.y;
    }
    
    @Override
    public boolean equals(final Object o) {
        if (o instanceof Cursor) {
            final Cursor c = (Cursor)o;
            return this.x == c.x && this.y == c.y;
        }
        return false;
    }
    
    @Override
    public int hashCode() {
        return this.x * 31 + this.y;
    }
    
    @Override
    public String toString() {
        return "Cursor[x=" + this.x + ", y=" + this.y + ']';
    }
}
