• R/O
  • SSH

Commit

Tags
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

Commit MetaInfo

Revisão31aedf9f096e3703ee42c791b69b332f3bfeec7f (tree)
Hora2015-11-17 07:24:51
AutorMirrgieRiana
CommiterMirrgieRiana

Mensagem de Log

mirrg/struct/hydrogen -> mirrg/struct/hydrogen/v1_0

Mudança Sumário

Diff

diff -r d60ebce90702 -r 31aedf9f096e projects/mirrg.struct.hydrogen/src/main/java/mirrg/struct/hydrogen/Struct1.java
--- a/projects/mirrg.struct.hydrogen/src/main/java/mirrg/struct/hydrogen/Struct1.java Tue Nov 17 06:18:44 2015 +0900
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,60 +0,0 @@
1-package mirrg.struct.hydrogen;
2-
3-import java.io.Serializable;
4-
5-public class Struct1<X> implements Serializable
6-{
7-
8- private static final long serialVersionUID = -8414447999406587404L;
9-
10- public X x;
11-
12- public Struct1()
13- {
14-
15- }
16-
17- public Struct1(X x)
18- {
19- this.x = x;
20- }
21-
22- public X getX()
23- {
24- return x;
25- }
26-
27- public void setX(X x)
28- {
29- this.x = x;
30- }
31-
32- @Override
33- public String toString()
34- {
35- return "Struct1 [x=" + x + "]";
36- }
37-
38- @Override
39- public int hashCode()
40- {
41- final int prime = 31;
42- int result = 1;
43- result = prime * result + ((x == null) ? 0 : x.hashCode());
44- return result;
45- }
46-
47- @Override
48- public boolean equals(Object obj)
49- {
50- if (this == obj) return true;
51- if (obj == null) return false;
52- if (getClass() != obj.getClass()) return false;
53- Struct1<?> other = (Struct1<?>) obj;
54- if (x == null) {
55- if (other.x != null) return false;
56- } else if (!x.equals(other.x)) return false;
57- return true;
58- }
59-
60-}
diff -r d60ebce90702 -r 31aedf9f096e projects/mirrg.struct.hydrogen/src/main/java/mirrg/struct/hydrogen/Struct2.java
--- a/projects/mirrg.struct.hydrogen/src/main/java/mirrg/struct/hydrogen/Struct2.java Tue Nov 17 06:18:44 2015 +0900
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,76 +0,0 @@
1-package mirrg.struct.hydrogen;
2-
3-import java.io.Serializable;
4-
5-public class Struct2<X, Y> implements Serializable
6-{
7-
8- private static final long serialVersionUID = -4797945196276075175L;
9-
10- public X x;
11- public Y y;
12-
13- public Struct2()
14- {
15-
16- }
17-
18- public Struct2(X x, Y y)
19- {
20- this.x = x;
21- this.y = y;
22- }
23-
24- public X getX()
25- {
26- return x;
27- }
28-
29- public void setX(X x)
30- {
31- this.x = x;
32- }
33-
34- public Y getY()
35- {
36- return y;
37- }
38-
39- public void setY(Y y)
40- {
41- this.y = y;
42- }
43-
44- @Override
45- public String toString()
46- {
47- return "Struct2 [x=" + x + ", y=" + y + "]";
48- }
49-
50- @Override
51- public int hashCode()
52- {
53- final int prime = 31;
54- int result = 1;
55- result = prime * result + ((x == null) ? 0 : x.hashCode());
56- result = prime * result + ((y == null) ? 0 : y.hashCode());
57- return result;
58- }
59-
60- @Override
61- public boolean equals(Object obj)
62- {
63- if (this == obj) return true;
64- if (obj == null) return false;
65- if (getClass() != obj.getClass()) return false;
66- Struct2<?, ?> other = (Struct2<?, ?>) obj;
67- if (x == null) {
68- if (other.x != null) return false;
69- } else if (!x.equals(other.x)) return false;
70- if (y == null) {
71- if (other.y != null) return false;
72- } else if (!y.equals(other.y)) return false;
73- return true;
74- }
75-
76-}
diff -r d60ebce90702 -r 31aedf9f096e projects/mirrg.struct.hydrogen/src/main/java/mirrg/struct/hydrogen/Struct3.java
--- a/projects/mirrg.struct.hydrogen/src/main/java/mirrg/struct/hydrogen/Struct3.java Tue Nov 17 06:18:44 2015 +0900
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,92 +0,0 @@
1-package mirrg.struct.hydrogen;
2-
3-import java.io.Serializable;
4-
5-public class Struct3<X, Y, Z> implements Serializable
6-{
7-
8- private static final long serialVersionUID = -3998232198484247838L;
9-
10- public X x;
11- public Y y;
12- public Z z;
13-
14- public Struct3()
15- {
16-
17- }
18-
19- public Struct3(X x, Y y, Z z)
20- {
21- this.x = x;
22- this.y = y;
23- this.z = z;
24- }
25-
26- public X getX()
27- {
28- return x;
29- }
30-
31- public void setX(X x)
32- {
33- this.x = x;
34- }
35-
36- public Y getY()
37- {
38- return y;
39- }
40-
41- public void setY(Y y)
42- {
43- this.y = y;
44- }
45-
46- public Z getZ()
47- {
48- return z;
49- }
50-
51- public void setZ(Z z)
52- {
53- this.z = z;
54- }
55-
56- @Override
57- public String toString()
58- {
59- return "Struct3 [x=" + x + ", y=" + y + ", z=" + z + "]";
60- }
61-
62- @Override
63- public int hashCode()
64- {
65- final int prime = 31;
66- int result = 1;
67- result = prime * result + ((x == null) ? 0 : x.hashCode());
68- result = prime * result + ((y == null) ? 0 : y.hashCode());
69- result = prime * result + ((z == null) ? 0 : z.hashCode());
70- return result;
71- }
72-
73- @Override
74- public boolean equals(Object obj)
75- {
76- if (this == obj) return true;
77- if (obj == null) return false;
78- if (getClass() != obj.getClass()) return false;
79- Struct3<?, ?, ?> other = (Struct3<?, ?, ?>) obj;
80- if (x == null) {
81- if (other.x != null) return false;
82- } else if (!x.equals(other.x)) return false;
83- if (y == null) {
84- if (other.y != null) return false;
85- } else if (!y.equals(other.y)) return false;
86- if (z == null) {
87- if (other.z != null) return false;
88- } else if (!z.equals(other.z)) return false;
89- return true;
90- }
91-
92-}
diff -r d60ebce90702 -r 31aedf9f096e projects/mirrg.struct.hydrogen/src/main/java/mirrg/struct/hydrogen/Struct4.java
--- a/projects/mirrg.struct.hydrogen/src/main/java/mirrg/struct/hydrogen/Struct4.java Tue Nov 17 06:18:44 2015 +0900
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,108 +0,0 @@
1-package mirrg.struct.hydrogen;
2-
3-import java.io.Serializable;
4-
5-public class Struct4<X, Y, Z, W> implements Serializable
6-{
7-
8- private static final long serialVersionUID = 6670516059823805288L;
9-
10- public X x;
11- public Y y;
12- public Z z;
13- public W w;
14-
15- public Struct4()
16- {
17-
18- }
19-
20- public Struct4(X x, Y y, Z z, W w)
21- {
22- this.x = x;
23- this.y = y;
24- this.z = z;
25- this.w = w;
26- }
27-
28- public X getX()
29- {
30- return x;
31- }
32-
33- public void setX(X x)
34- {
35- this.x = x;
36- }
37-
38- public Y getY()
39- {
40- return y;
41- }
42-
43- public void setY(Y y)
44- {
45- this.y = y;
46- }
47-
48- public Z getZ()
49- {
50- return z;
51- }
52-
53- public void setZ(Z z)
54- {
55- this.z = z;
56- }
57-
58- public W getW()
59- {
60- return w;
61- }
62-
63- public void setW(W w)
64- {
65- this.w = w;
66- }
67-
68- @Override
69- public String toString()
70- {
71- return "Struct4 [x=" + x + ", y=" + y + ", z=" + z + ", w=" + w + "]";
72- }
73-
74- @Override
75- public int hashCode()
76- {
77- final int prime = 31;
78- int result = 1;
79- result = prime * result + ((w == null) ? 0 : w.hashCode());
80- result = prime * result + ((x == null) ? 0 : x.hashCode());
81- result = prime * result + ((y == null) ? 0 : y.hashCode());
82- result = prime * result + ((z == null) ? 0 : z.hashCode());
83- return result;
84- }
85-
86- @Override
87- public boolean equals(Object obj)
88- {
89- if (this == obj) return true;
90- if (obj == null) return false;
91- if (getClass() != obj.getClass()) return false;
92- Struct4<?, ?, ?, ?> other = (Struct4<?, ?, ?, ?>) obj;
93- if (w == null) {
94- if (other.w != null) return false;
95- } else if (!w.equals(other.w)) return false;
96- if (x == null) {
97- if (other.x != null) return false;
98- } else if (!x.equals(other.x)) return false;
99- if (y == null) {
100- if (other.y != null) return false;
101- } else if (!y.equals(other.y)) return false;
102- if (z == null) {
103- if (other.z != null) return false;
104- } else if (!z.equals(other.z)) return false;
105- return true;
106- }
107-
108-}
diff -r d60ebce90702 -r 31aedf9f096e projects/mirrg.struct.hydrogen/src/main/java/mirrg/struct/hydrogen/Tuple.java
--- a/projects/mirrg.struct.hydrogen/src/main/java/mirrg/struct/hydrogen/Tuple.java Tue Nov 17 06:18:44 2015 +0900
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,61 +0,0 @@
1-package mirrg.struct.hydrogen;
2-
3-import java.io.Serializable;
4-
5-public class Tuple<X, Y> implements Serializable
6-{
7-
8- private static final long serialVersionUID = 3499078220999926072L;
9-
10- private X x;
11- private Y y;
12-
13- public Tuple(X x, Y y)
14- {
15- this.x = x;
16- this.y = y;
17- }
18-
19- public X getX()
20- {
21- return x;
22- }
23-
24- public Y getY()
25- {
26- return y;
27- }
28-
29- @Override
30- public String toString()
31- {
32- return "Tuple [x=" + x + ", y=" + y + "]";
33- }
34-
35- @Override
36- public int hashCode()
37- {
38- final int prime = 31;
39- int result = 1;
40- result = prime * result + ((x == null) ? 0 : x.hashCode());
41- result = prime * result + ((y == null) ? 0 : y.hashCode());
42- return result;
43- }
44-
45- @Override
46- public boolean equals(Object obj)
47- {
48- if (this == obj) return true;
49- if (obj == null) return false;
50- if (getClass() != obj.getClass()) return false;
51- Tuple<?, ?> other = (Tuple<?, ?>) obj;
52- if (x == null) {
53- if (other.x != null) return false;
54- } else if (!x.equals(other.x)) return false;
55- if (y == null) {
56- if (other.y != null) return false;
57- } else if (!y.equals(other.y)) return false;
58- return true;
59- }
60-
61-}
diff -r d60ebce90702 -r 31aedf9f096e projects/mirrg.struct.hydrogen/src/main/java/mirrg/struct/hydrogen/Tuple1.java
--- a/projects/mirrg.struct.hydrogen/src/main/java/mirrg/struct/hydrogen/Tuple1.java Tue Nov 17 06:18:44 2015 +0900
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,50 +0,0 @@
1-package mirrg.struct.hydrogen;
2-
3-import java.io.Serializable;
4-
5-public class Tuple1<X> implements Serializable
6-{
7-
8- private static final long serialVersionUID = 494865600797541340L;
9-
10- private X x;
11-
12- public Tuple1(X x)
13- {
14- this.x = x;
15- }
16-
17- public X getX()
18- {
19- return x;
20- }
21-
22- @Override
23- public String toString()
24- {
25- return "Tuple1 [x=" + x + "]";
26- }
27-
28- @Override
29- public int hashCode()
30- {
31- final int prime = 31;
32- int result = 1;
33- result = prime * result + ((x == null) ? 0 : x.hashCode());
34- return result;
35- }
36-
37- @Override
38- public boolean equals(Object obj)
39- {
40- if (this == obj) return true;
41- if (obj == null) return false;
42- if (getClass() != obj.getClass()) return false;
43- Tuple1<?> other = (Tuple1<?>) obj;
44- if (x == null) {
45- if (other.x != null) return false;
46- } else if (!x.equals(other.x)) return false;
47- return true;
48- }
49-
50-}
diff -r d60ebce90702 -r 31aedf9f096e projects/mirrg.struct.hydrogen/src/main/java/mirrg/struct/hydrogen/Tuple3.java
--- a/projects/mirrg.struct.hydrogen/src/main/java/mirrg/struct/hydrogen/Tuple3.java Tue Nov 17 06:18:44 2015 +0900
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,72 +0,0 @@
1-package mirrg.struct.hydrogen;
2-
3-import java.io.Serializable;
4-
5-public class Tuple3<X, Y, Z> implements Serializable
6-{
7-
8- private static final long serialVersionUID = -4523149685305230277L;
9-
10- private X x;
11- private Y y;
12- private Z z;
13-
14- public Tuple3(X x, Y y, Z z)
15- {
16- this.x = x;
17- this.y = y;
18- this.z = z;
19- }
20-
21- public X getX()
22- {
23- return x;
24- }
25-
26- public Y getY()
27- {
28- return y;
29- }
30-
31- public Z getZ()
32- {
33- return z;
34- }
35-
36- @Override
37- public String toString()
38- {
39- return "Tuple3 [x=" + x + ", y=" + y + ", z=" + z + "]";
40- }
41-
42- @Override
43- public int hashCode()
44- {
45- final int prime = 31;
46- int result = 1;
47- result = prime * result + ((x == null) ? 0 : x.hashCode());
48- result = prime * result + ((y == null) ? 0 : y.hashCode());
49- result = prime * result + ((z == null) ? 0 : z.hashCode());
50- return result;
51- }
52-
53- @Override
54- public boolean equals(Object obj)
55- {
56- if (this == obj) return true;
57- if (obj == null) return false;
58- if (getClass() != obj.getClass()) return false;
59- Tuple3<?, ?, ?> other = (Tuple3<?, ?, ?>) obj;
60- if (x == null) {
61- if (other.x != null) return false;
62- } else if (!x.equals(other.x)) return false;
63- if (y == null) {
64- if (other.y != null) return false;
65- } else if (!y.equals(other.y)) return false;
66- if (z == null) {
67- if (other.z != null) return false;
68- } else if (!z.equals(other.z)) return false;
69- return true;
70- }
71-
72-}
diff -r d60ebce90702 -r 31aedf9f096e projects/mirrg.struct.hydrogen/src/main/java/mirrg/struct/hydrogen/Tuple4.java
--- a/projects/mirrg.struct.hydrogen/src/main/java/mirrg/struct/hydrogen/Tuple4.java Tue Nov 17 06:18:44 2015 +0900
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,83 +0,0 @@
1-package mirrg.struct.hydrogen;
2-
3-import java.io.Serializable;
4-
5-public class Tuple4<X, Y, Z, W> implements Serializable
6-{
7-
8- private static final long serialVersionUID = -3660672742737490205L;
9-
10- private X x;
11- private Y y;
12- private Z z;
13- private W w;
14-
15- public Tuple4(X x, Y y, Z z, W w)
16- {
17- this.x = x;
18- this.y = y;
19- this.z = z;
20- this.w = w;
21- }
22-
23- public X getX()
24- {
25- return x;
26- }
27-
28- public Y getY()
29- {
30- return y;
31- }
32-
33- public Z getZ()
34- {
35- return z;
36- }
37-
38- public W getW()
39- {
40- return w;
41- }
42-
43- @Override
44- public String toString()
45- {
46- return "Tuple4 [x=" + x + ", y=" + y + ", z=" + z + ", w=" + w + "]";
47- }
48-
49- @Override
50- public int hashCode()
51- {
52- final int prime = 31;
53- int result = 1;
54- result = prime * result + ((w == null) ? 0 : w.hashCode());
55- result = prime * result + ((x == null) ? 0 : x.hashCode());
56- result = prime * result + ((y == null) ? 0 : y.hashCode());
57- result = prime * result + ((z == null) ? 0 : z.hashCode());
58- return result;
59- }
60-
61- @Override
62- public boolean equals(Object obj)
63- {
64- if (this == obj) return true;
65- if (obj == null) return false;
66- if (getClass() != obj.getClass()) return false;
67- Tuple4<?, ?, ?, ?> other = (Tuple4<?, ?, ?, ?>) obj;
68- if (w == null) {
69- if (other.w != null) return false;
70- } else if (!w.equals(other.w)) return false;
71- if (x == null) {
72- if (other.x != null) return false;
73- } else if (!x.equals(other.x)) return false;
74- if (y == null) {
75- if (other.y != null) return false;
76- } else if (!y.equals(other.y)) return false;
77- if (z == null) {
78- if (other.z != null) return false;
79- } else if (!z.equals(other.z)) return false;
80- return true;
81- }
82-
83-}
diff -r d60ebce90702 -r 31aedf9f096e projects/mirrg.struct.hydrogen/src/main/java/mirrg/struct/hydrogen/v1_0/Struct1.java
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/projects/mirrg.struct.hydrogen/src/main/java/mirrg/struct/hydrogen/v1_0/Struct1.java Tue Nov 17 07:24:51 2015 +0900
@@ -0,0 +1,60 @@
1+package mirrg.struct.hydrogen.v1_0;
2+
3+import java.io.Serializable;
4+
5+public class Struct1<X> implements Serializable
6+{
7+
8+ private static final long serialVersionUID = -8414447999406587404L;
9+
10+ public X x;
11+
12+ public Struct1()
13+ {
14+
15+ }
16+
17+ public Struct1(X x)
18+ {
19+ this.x = x;
20+ }
21+
22+ public X getX()
23+ {
24+ return x;
25+ }
26+
27+ public void setX(X x)
28+ {
29+ this.x = x;
30+ }
31+
32+ @Override
33+ public String toString()
34+ {
35+ return "Struct1 [x=" + x + "]";
36+ }
37+
38+ @Override
39+ public int hashCode()
40+ {
41+ final int prime = 31;
42+ int result = 1;
43+ result = prime * result + ((x == null) ? 0 : x.hashCode());
44+ return result;
45+ }
46+
47+ @Override
48+ public boolean equals(Object obj)
49+ {
50+ if (this == obj) return true;
51+ if (obj == null) return false;
52+ if (getClass() != obj.getClass()) return false;
53+ Struct1<?> other = (Struct1<?>) obj;
54+ if (x == null) {
55+ if (other.x != null) return false;
56+ } else if (!x.equals(other.x)) return false;
57+ return true;
58+ }
59+
60+}
diff -r d60ebce90702 -r 31aedf9f096e projects/mirrg.struct.hydrogen/src/main/java/mirrg/struct/hydrogen/v1_0/Struct2.java
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/projects/mirrg.struct.hydrogen/src/main/java/mirrg/struct/hydrogen/v1_0/Struct2.java Tue Nov 17 07:24:51 2015 +0900
@@ -0,0 +1,76 @@
1+package mirrg.struct.hydrogen.v1_0;
2+
3+import java.io.Serializable;
4+
5+public class Struct2<X, Y> implements Serializable
6+{
7+
8+ private static final long serialVersionUID = -4797945196276075175L;
9+
10+ public X x;
11+ public Y y;
12+
13+ public Struct2()
14+ {
15+
16+ }
17+
18+ public Struct2(X x, Y y)
19+ {
20+ this.x = x;
21+ this.y = y;
22+ }
23+
24+ public X getX()
25+ {
26+ return x;
27+ }
28+
29+ public void setX(X x)
30+ {
31+ this.x = x;
32+ }
33+
34+ public Y getY()
35+ {
36+ return y;
37+ }
38+
39+ public void setY(Y y)
40+ {
41+ this.y = y;
42+ }
43+
44+ @Override
45+ public String toString()
46+ {
47+ return "Struct2 [x=" + x + ", y=" + y + "]";
48+ }
49+
50+ @Override
51+ public int hashCode()
52+ {
53+ final int prime = 31;
54+ int result = 1;
55+ result = prime * result + ((x == null) ? 0 : x.hashCode());
56+ result = prime * result + ((y == null) ? 0 : y.hashCode());
57+ return result;
58+ }
59+
60+ @Override
61+ public boolean equals(Object obj)
62+ {
63+ if (this == obj) return true;
64+ if (obj == null) return false;
65+ if (getClass() != obj.getClass()) return false;
66+ Struct2<?, ?> other = (Struct2<?, ?>) obj;
67+ if (x == null) {
68+ if (other.x != null) return false;
69+ } else if (!x.equals(other.x)) return false;
70+ if (y == null) {
71+ if (other.y != null) return false;
72+ } else if (!y.equals(other.y)) return false;
73+ return true;
74+ }
75+
76+}
diff -r d60ebce90702 -r 31aedf9f096e projects/mirrg.struct.hydrogen/src/main/java/mirrg/struct/hydrogen/v1_0/Struct3.java
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/projects/mirrg.struct.hydrogen/src/main/java/mirrg/struct/hydrogen/v1_0/Struct3.java Tue Nov 17 07:24:51 2015 +0900
@@ -0,0 +1,92 @@
1+package mirrg.struct.hydrogen.v1_0;
2+
3+import java.io.Serializable;
4+
5+public class Struct3<X, Y, Z> implements Serializable
6+{
7+
8+ private static final long serialVersionUID = -3998232198484247838L;
9+
10+ public X x;
11+ public Y y;
12+ public Z z;
13+
14+ public Struct3()
15+ {
16+
17+ }
18+
19+ public Struct3(X x, Y y, Z z)
20+ {
21+ this.x = x;
22+ this.y = y;
23+ this.z = z;
24+ }
25+
26+ public X getX()
27+ {
28+ return x;
29+ }
30+
31+ public void setX(X x)
32+ {
33+ this.x = x;
34+ }
35+
36+ public Y getY()
37+ {
38+ return y;
39+ }
40+
41+ public void setY(Y y)
42+ {
43+ this.y = y;
44+ }
45+
46+ public Z getZ()
47+ {
48+ return z;
49+ }
50+
51+ public void setZ(Z z)
52+ {
53+ this.z = z;
54+ }
55+
56+ @Override
57+ public String toString()
58+ {
59+ return "Struct3 [x=" + x + ", y=" + y + ", z=" + z + "]";
60+ }
61+
62+ @Override
63+ public int hashCode()
64+ {
65+ final int prime = 31;
66+ int result = 1;
67+ result = prime * result + ((x == null) ? 0 : x.hashCode());
68+ result = prime * result + ((y == null) ? 0 : y.hashCode());
69+ result = prime * result + ((z == null) ? 0 : z.hashCode());
70+ return result;
71+ }
72+
73+ @Override
74+ public boolean equals(Object obj)
75+ {
76+ if (this == obj) return true;
77+ if (obj == null) return false;
78+ if (getClass() != obj.getClass()) return false;
79+ Struct3<?, ?, ?> other = (Struct3<?, ?, ?>) obj;
80+ if (x == null) {
81+ if (other.x != null) return false;
82+ } else if (!x.equals(other.x)) return false;
83+ if (y == null) {
84+ if (other.y != null) return false;
85+ } else if (!y.equals(other.y)) return false;
86+ if (z == null) {
87+ if (other.z != null) return false;
88+ } else if (!z.equals(other.z)) return false;
89+ return true;
90+ }
91+
92+}
diff -r d60ebce90702 -r 31aedf9f096e projects/mirrg.struct.hydrogen/src/main/java/mirrg/struct/hydrogen/v1_0/Struct4.java
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/projects/mirrg.struct.hydrogen/src/main/java/mirrg/struct/hydrogen/v1_0/Struct4.java Tue Nov 17 07:24:51 2015 +0900
@@ -0,0 +1,108 @@
1+package mirrg.struct.hydrogen.v1_0;
2+
3+import java.io.Serializable;
4+
5+public class Struct4<X, Y, Z, W> implements Serializable
6+{
7+
8+ private static final long serialVersionUID = 6670516059823805288L;
9+
10+ public X x;
11+ public Y y;
12+ public Z z;
13+ public W w;
14+
15+ public Struct4()
16+ {
17+
18+ }
19+
20+ public Struct4(X x, Y y, Z z, W w)
21+ {
22+ this.x = x;
23+ this.y = y;
24+ this.z = z;
25+ this.w = w;
26+ }
27+
28+ public X getX()
29+ {
30+ return x;
31+ }
32+
33+ public void setX(X x)
34+ {
35+ this.x = x;
36+ }
37+
38+ public Y getY()
39+ {
40+ return y;
41+ }
42+
43+ public void setY(Y y)
44+ {
45+ this.y = y;
46+ }
47+
48+ public Z getZ()
49+ {
50+ return z;
51+ }
52+
53+ public void setZ(Z z)
54+ {
55+ this.z = z;
56+ }
57+
58+ public W getW()
59+ {
60+ return w;
61+ }
62+
63+ public void setW(W w)
64+ {
65+ this.w = w;
66+ }
67+
68+ @Override
69+ public String toString()
70+ {
71+ return "Struct4 [x=" + x + ", y=" + y + ", z=" + z + ", w=" + w + "]";
72+ }
73+
74+ @Override
75+ public int hashCode()
76+ {
77+ final int prime = 31;
78+ int result = 1;
79+ result = prime * result + ((w == null) ? 0 : w.hashCode());
80+ result = prime * result + ((x == null) ? 0 : x.hashCode());
81+ result = prime * result + ((y == null) ? 0 : y.hashCode());
82+ result = prime * result + ((z == null) ? 0 : z.hashCode());
83+ return result;
84+ }
85+
86+ @Override
87+ public boolean equals(Object obj)
88+ {
89+ if (this == obj) return true;
90+ if (obj == null) return false;
91+ if (getClass() != obj.getClass()) return false;
92+ Struct4<?, ?, ?, ?> other = (Struct4<?, ?, ?, ?>) obj;
93+ if (w == null) {
94+ if (other.w != null) return false;
95+ } else if (!w.equals(other.w)) return false;
96+ if (x == null) {
97+ if (other.x != null) return false;
98+ } else if (!x.equals(other.x)) return false;
99+ if (y == null) {
100+ if (other.y != null) return false;
101+ } else if (!y.equals(other.y)) return false;
102+ if (z == null) {
103+ if (other.z != null) return false;
104+ } else if (!z.equals(other.z)) return false;
105+ return true;
106+ }
107+
108+}
diff -r d60ebce90702 -r 31aedf9f096e projects/mirrg.struct.hydrogen/src/main/java/mirrg/struct/hydrogen/v1_0/Tuple.java
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/projects/mirrg.struct.hydrogen/src/main/java/mirrg/struct/hydrogen/v1_0/Tuple.java Tue Nov 17 07:24:51 2015 +0900
@@ -0,0 +1,61 @@
1+package mirrg.struct.hydrogen.v1_0;
2+
3+import java.io.Serializable;
4+
5+public class Tuple<X, Y> implements Serializable
6+{
7+
8+ private static final long serialVersionUID = 3499078220999926072L;
9+
10+ private X x;
11+ private Y y;
12+
13+ public Tuple(X x, Y y)
14+ {
15+ this.x = x;
16+ this.y = y;
17+ }
18+
19+ public X getX()
20+ {
21+ return x;
22+ }
23+
24+ public Y getY()
25+ {
26+ return y;
27+ }
28+
29+ @Override
30+ public String toString()
31+ {
32+ return "Tuple [x=" + x + ", y=" + y + "]";
33+ }
34+
35+ @Override
36+ public int hashCode()
37+ {
38+ final int prime = 31;
39+ int result = 1;
40+ result = prime * result + ((x == null) ? 0 : x.hashCode());
41+ result = prime * result + ((y == null) ? 0 : y.hashCode());
42+ return result;
43+ }
44+
45+ @Override
46+ public boolean equals(Object obj)
47+ {
48+ if (this == obj) return true;
49+ if (obj == null) return false;
50+ if (getClass() != obj.getClass()) return false;
51+ Tuple<?, ?> other = (Tuple<?, ?>) obj;
52+ if (x == null) {
53+ if (other.x != null) return false;
54+ } else if (!x.equals(other.x)) return false;
55+ if (y == null) {
56+ if (other.y != null) return false;
57+ } else if (!y.equals(other.y)) return false;
58+ return true;
59+ }
60+
61+}
diff -r d60ebce90702 -r 31aedf9f096e projects/mirrg.struct.hydrogen/src/main/java/mirrg/struct/hydrogen/v1_0/Tuple1.java
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/projects/mirrg.struct.hydrogen/src/main/java/mirrg/struct/hydrogen/v1_0/Tuple1.java Tue Nov 17 07:24:51 2015 +0900
@@ -0,0 +1,50 @@
1+package mirrg.struct.hydrogen.v1_0;
2+
3+import java.io.Serializable;
4+
5+public class Tuple1<X> implements Serializable
6+{
7+
8+ private static final long serialVersionUID = 494865600797541340L;
9+
10+ private X x;
11+
12+ public Tuple1(X x)
13+ {
14+ this.x = x;
15+ }
16+
17+ public X getX()
18+ {
19+ return x;
20+ }
21+
22+ @Override
23+ public String toString()
24+ {
25+ return "Tuple1 [x=" + x + "]";
26+ }
27+
28+ @Override
29+ public int hashCode()
30+ {
31+ final int prime = 31;
32+ int result = 1;
33+ result = prime * result + ((x == null) ? 0 : x.hashCode());
34+ return result;
35+ }
36+
37+ @Override
38+ public boolean equals(Object obj)
39+ {
40+ if (this == obj) return true;
41+ if (obj == null) return false;
42+ if (getClass() != obj.getClass()) return false;
43+ Tuple1<?> other = (Tuple1<?>) obj;
44+ if (x == null) {
45+ if (other.x != null) return false;
46+ } else if (!x.equals(other.x)) return false;
47+ return true;
48+ }
49+
50+}
diff -r d60ebce90702 -r 31aedf9f096e projects/mirrg.struct.hydrogen/src/main/java/mirrg/struct/hydrogen/v1_0/Tuple3.java
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/projects/mirrg.struct.hydrogen/src/main/java/mirrg/struct/hydrogen/v1_0/Tuple3.java Tue Nov 17 07:24:51 2015 +0900
@@ -0,0 +1,72 @@
1+package mirrg.struct.hydrogen.v1_0;
2+
3+import java.io.Serializable;
4+
5+public class Tuple3<X, Y, Z> implements Serializable
6+{
7+
8+ private static final long serialVersionUID = -4523149685305230277L;
9+
10+ private X x;
11+ private Y y;
12+ private Z z;
13+
14+ public Tuple3(X x, Y y, Z z)
15+ {
16+ this.x = x;
17+ this.y = y;
18+ this.z = z;
19+ }
20+
21+ public X getX()
22+ {
23+ return x;
24+ }
25+
26+ public Y getY()
27+ {
28+ return y;
29+ }
30+
31+ public Z getZ()
32+ {
33+ return z;
34+ }
35+
36+ @Override
37+ public String toString()
38+ {
39+ return "Tuple3 [x=" + x + ", y=" + y + ", z=" + z + "]";
40+ }
41+
42+ @Override
43+ public int hashCode()
44+ {
45+ final int prime = 31;
46+ int result = 1;
47+ result = prime * result + ((x == null) ? 0 : x.hashCode());
48+ result = prime * result + ((y == null) ? 0 : y.hashCode());
49+ result = prime * result + ((z == null) ? 0 : z.hashCode());
50+ return result;
51+ }
52+
53+ @Override
54+ public boolean equals(Object obj)
55+ {
56+ if (this == obj) return true;
57+ if (obj == null) return false;
58+ if (getClass() != obj.getClass()) return false;
59+ Tuple3<?, ?, ?> other = (Tuple3<?, ?, ?>) obj;
60+ if (x == null) {
61+ if (other.x != null) return false;
62+ } else if (!x.equals(other.x)) return false;
63+ if (y == null) {
64+ if (other.y != null) return false;
65+ } else if (!y.equals(other.y)) return false;
66+ if (z == null) {
67+ if (other.z != null) return false;
68+ } else if (!z.equals(other.z)) return false;
69+ return true;
70+ }
71+
72+}
diff -r d60ebce90702 -r 31aedf9f096e projects/mirrg.struct.hydrogen/src/main/java/mirrg/struct/hydrogen/v1_0/Tuple4.java
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/projects/mirrg.struct.hydrogen/src/main/java/mirrg/struct/hydrogen/v1_0/Tuple4.java Tue Nov 17 07:24:51 2015 +0900
@@ -0,0 +1,83 @@
1+package mirrg.struct.hydrogen.v1_0;
2+
3+import java.io.Serializable;
4+
5+public class Tuple4<X, Y, Z, W> implements Serializable
6+{
7+
8+ private static final long serialVersionUID = -3660672742737490205L;
9+
10+ private X x;
11+ private Y y;
12+ private Z z;
13+ private W w;
14+
15+ public Tuple4(X x, Y y, Z z, W w)
16+ {
17+ this.x = x;
18+ this.y = y;
19+ this.z = z;
20+ this.w = w;
21+ }
22+
23+ public X getX()
24+ {
25+ return x;
26+ }
27+
28+ public Y getY()
29+ {
30+ return y;
31+ }
32+
33+ public Z getZ()
34+ {
35+ return z;
36+ }
37+
38+ public W getW()
39+ {
40+ return w;
41+ }
42+
43+ @Override
44+ public String toString()
45+ {
46+ return "Tuple4 [x=" + x + ", y=" + y + ", z=" + z + ", w=" + w + "]";
47+ }
48+
49+ @Override
50+ public int hashCode()
51+ {
52+ final int prime = 31;
53+ int result = 1;
54+ result = prime * result + ((w == null) ? 0 : w.hashCode());
55+ result = prime * result + ((x == null) ? 0 : x.hashCode());
56+ result = prime * result + ((y == null) ? 0 : y.hashCode());
57+ result = prime * result + ((z == null) ? 0 : z.hashCode());
58+ return result;
59+ }
60+
61+ @Override
62+ public boolean equals(Object obj)
63+ {
64+ if (this == obj) return true;
65+ if (obj == null) return false;
66+ if (getClass() != obj.getClass()) return false;
67+ Tuple4<?, ?, ?, ?> other = (Tuple4<?, ?, ?, ?>) obj;
68+ if (w == null) {
69+ if (other.w != null) return false;
70+ } else if (!w.equals(other.w)) return false;
71+ if (x == null) {
72+ if (other.x != null) return false;
73+ } else if (!x.equals(other.x)) return false;
74+ if (y == null) {
75+ if (other.y != null) return false;
76+ } else if (!y.equals(other.y)) return false;
77+ if (z == null) {
78+ if (other.z != null) return false;
79+ } else if (!z.equals(other.z)) return false;
80+ return true;
81+ }
82+
83+}