Debian Codegraph @

current/align2/Quad64.java

raw symbols SCIP
1 package align2;
2
3 public class Quad64 implements Comparable<Quad64>{
4
5 public Quad64(int col_, int row_, int val_){
6 column=col_;
7 row=row_;
8 site=val_;
9 }
10
11 @Override
12 public boolean equals(Object other){
13 assert(false);
14 return site==((Quad64)other).site;
15 }
16
17 @Override
18 public int hashCode(){return (int)site;}
19
20 @Override
21 public int compareTo(Quad64 other) {
22 return site>other.site ? 1 : site<other.site ? -1 : column-other.column;
23 // int x=site-other.site;
24 // return(x>0 ? 1 : x<0 ? -1 : column-other.column);
25 }
26
27 @Override
28 public String toString(){
29 return("("+column+","+row+","+site+")");
30 }
31
32 public final int column;
33 public int row;
34 public long site;
35 public int list[];
36
37 }