comparison gnv-artifacts/src/main/java/de/intevation/gnv/math/IJKey.java @ 431:422275fc9927

Refactored the XYColumn and Point2d code a bit to be more reusable in 3D. gnv-artifacts/trunk@479 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Sascha L. Teichmann <sascha.teichmann@intevation.de>
date Wed, 23 Dec 2009 06:53:46 +0000
parents
children b624879d2902
comparison
equal deleted inserted replaced
430:23e9352df09b 431:422275fc9927
1 package de.intevation.gnv.math;
2
3 import java.io.Serializable;
4
5 /**
6 * @author Sascha L. Teichmann <sascha.teichmann@intevation.de>
7 */
8 public class IJKey
9 implements Serializable
10 {
11 public int i;
12 public int j;
13
14 public IJKey() {
15 }
16
17 public IJKey(int i, int j) {
18 this.i = i;
19 this.j = j;
20 }
21
22 public int hashCode() {
23 return (i << 16) | j;
24 }
25
26 public boolean equals(Object obj) {
27 IJKey other = (IJKey)obj;
28 return i == other.i && j == other.j;
29 }
30 }
31 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8:

http://dive4elements.wald.intevation.org