comparison gnv-artifacts/src/main/java/de/intevation/gnv/math/IJKey.java @ 437:b624879d2902

Added vectorizer rings callback to generate iso lines. gnv-artifacts/trunk@485 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Sascha L. Teichmann <sascha.teichmann@intevation.de>
date Sun, 27 Dec 2009 05:25:40 +0000
parents 422275fc9927
children c4156275c1e1
comparison
equal deleted inserted replaced
436:6642ab6c583c 437:b624879d2902
17 public IJKey(int i, int j) { 17 public IJKey(int i, int j) {
18 this.i = i; 18 this.i = i;
19 this.j = j; 19 this.j = j;
20 } 20 }
21 21
22 public void sort() {
23 if (i > j) {
24 int t = i;
25 i = j;
26 j = t;
27 }
28 }
29
22 public int hashCode() { 30 public int hashCode() {
23 return (i << 16) | j; 31 return (i << 16) | j;
24 } 32 }
25 33
26 public boolean equals(Object obj) { 34 public boolean equals(Object obj) {

http://dive4elements.wald.intevation.org