コード例 #1
0
 /* (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;
 }
コード例 #2
0
 /* (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;
 }
コード例 #3
0
 public int getRowIndex() {
   return coordinates.getRow();
 }
コード例 #4
0
 public int getColumnIndex() {
   return coordinates.getColumn();
 }