1 package com.github.celldynamics.quimp.plugin.randomwalk;
2
3
4
5
6
7
8
9 public class Point {
10
11
12
13
14 int col;
15
16
17
18 int row;
19
20
21
22
23
24
25
26 public Point(int col, int row) {
27 this.row = row;
28 this.col = col;
29 }
30
31
32
33
34 Point() {
35 row = 0;
36 col = 0;
37 }
38
39
40
41
42
43
44 @Override
45 public int hashCode() {
46 final int prime = 31;
47 int result = 1;
48 result = prime * result + col;
49 result = prime * result + row;
50 return result;
51 }
52
53
54
55
56
57
58 @Override
59 public boolean equals(Object obj) {
60 if (this == obj) {
61 return true;
62 }
63 if (obj == null) {
64 return false;
65 }
66 if (getClass() != obj.getClass()) {
67 return false;
68 }
69 Point="../../../../../../com/github/celldynamics/quimp/plugin/randomwalk/Point.html#Point">Point other = (Point) obj;
70 if (col != other.col) {
71 return false;
72 }
73 if (row != other.row) {
74 return false;
75 }
76 return true;
77 }
78
79
80
81
82
83
84 @Override
85 public String toString() {
86 return "Point [row=" + row + ", col=" + col + "]";
87 }
88
89 }