/* (non-Javadoc) * @see java.lang.Object#hashCode() */ @Override public int hashCode() { final int prime = 31; int result = 1; result = prime * result + ((coordinates == null) ? 0 : coordinates.hashCode()); return result; }
/* (non-Javadoc) * @see java.lang.Object#equals(java.lang.Object) */ @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (!(obj instanceof GridSectionTemp)) return false; GridSectionTemp other = (GridSectionTemp) obj; if (coordinates == null) { if (other.coordinates != null) return false; } else if (!coordinates.equals(other.coordinates)) return false; return true; }
public int getRowIndex() { return coordinates.getRow(); }
public int getColumnIndex() { return coordinates.getColumn(); }