package com.intellectualcrafters.plot.object; public class PlotLoc { public int x; public int z; public PlotLoc(int x, int z) { this.x = x; this.z = z; } @Override public int hashCode() { int prime = 31; int result = 1; result = (prime * result) + this.x; result = (prime * result) + this.z; return result; } @Override public String toString() { return this.x + "," + this.z; } @Override public boolean equals(Object obj) { if (this == obj) { return true; } if (obj == null) { return false; } if (getClass() != obj.getClass()) { return false; } PlotLoc other = (PlotLoc) obj; return (this.x == other.x) && (this.z == other.z); } }