summaryrefslogtreecommitdiff
path: root/org/guru/boggle/BoardPosition.java
blob: 5ef96a72e5010167e4411f5cb881920f26b16cd6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
package org.guru.boggle;

import com.google.common.base.Objects;

public class BoardPosition {
    private final int x;
    private final int y;

    public BoardPosition(int x, int y) {
        this.x = x;
        this.y = y;
    }

    public int x() {
        return x;
    }

    public int y() {
        return y;
    }

    @Override
    public String toString() {
        return Objects.toStringHelper(this)
        .add("x", x)
        .add("y", y)
        .toString();
    }
}