Advertisement
Guest User

Untitled

a guest
Jul 4th, 2015
228
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.39 KB | None | 0 0
  1. import java.util.Date;
  2.  
  3. public class Bug {
  4.  
  5. private Object f1;
  6. private Object f2;
  7. private Object f3;
  8. private Object f4;
  9. private Object f5;
  10. private Object f6;
  11. private Object f7;
  12. private Object f8;
  13. private Object f9;
  14. private Object f10;
  15. private Object f11;
  16. private Object f12;
  17. private Object f13;
  18. private Object f14;
  19. private Object f15;
  20. private Object f16;
  21. private Object f17;
  22. private Object f18;
  23. private Object f19;
  24. private Object f20;
  25. private Object f21;
  26. private Object f22;
  27. private Object f23;
  28. private Object f24;
  29. private Object f25;
  30.  
  31. @Override
  32. public boolean equals(Object obj) {
  33.  
  34. if (obj instanceof Bug) {
  35. Bug t = (Bug) obj;
  36. return ((this.getF1() == null ? t.getF1() == null : this.getF1().equals(t.getF1())) &&
  37. (this.getF2() == null ? t.getF2() == null : this.getF2().equals(t.getF2())) &&
  38. (this.getF3() == null ? t.getF3() == null : this.getF3().equals(t.getF3())) &&
  39. (this.getF4() == null ? t.getF4() == null : this.getF4().equals(t.getF4())) &&
  40. (this.getF5() == null ? t.getF5() == null : this.getF5().equals(t.getF5())) &&
  41. (this.getF6() == null ? t.getF6() == null : this.getF6().equals(t.getF6())) &&
  42. (this.getF7() == null ? t.getF7() == null : this.getF7().equals(t.getF7())) &&
  43. (this.getF8() == null ? t.getF8() == null : this.getF8().equals(t.getF8())) &&
  44. (this.getF9() == null ? t.getF9() == null : this.getF9().equals(t.getF9())) &&
  45. (this.getF10() == null ? t.getF10() == null : this.getF10().equals(t.getF10())) &&
  46. (this.getF11() == null ? t.getF11() == null : this.getF11().equals(t.getF11())) &&
  47. (this.getF12() == null ? t.getF12() == null : this.getF12().equals(t.getF12())) &&
  48. (this.getF13() == null ? t.getF13() == null : this.getF13().equals(t.getF13())) &&
  49. (this.getF14() == null ? t.getF14() == null : this.getF14().equals(t.getF14())) && // fine this and fewer
  50. (this.getF15() == null ? t.getF15() == null : this.getF15().equals(t.getF15())) && // Blows up this and more
  51. (this.getF23() == null ? t.getF23() == null : this.getF23().equals(t.getF23())) &&
  52. (this.getF16() == null ? t.getF16() == null : this.getF16().equals(t.getF16())) &&
  53. (this.getF17() == null ? t.getF17() == null : this.getF17().equals(t.getF17())) &&
  54. (this.getF18() == null ? t.getF18() == null : this.getF18().equals(t.getF18())) &&
  55. (this.getF19() == null ? t.getF19() == null : this.getF19().equals(t.getF19())) &&
  56. (this.getF20() == null ? t.getF20() == null : this.getF20().equals(t.getF20())) &&
  57. (this.getF21() == null ? t.getF21() == null : this.getF21().equals(t.getF21())) &&
  58. (this.getF22() == null ? t.getF22() == null : this.getF22().equals(t.getF22())) &&
  59. (this.getF23() == null ? t.getF23() == null : this.getF23().equals(t.getF23())) &&
  60. (this.getF24() == null ? t.getF24() == null : this.getF24().equals(t.getF24())) &&
  61. (this.getF25() == null ? t.getF25() == null : this.getF25().equals(t.getF25()))
  62. );
  63. }
  64.  
  65. return false;
  66. }
  67.  
  68.  
  69. public Object getF1() {
  70. return f1;
  71. }
  72.  
  73. public void setF1(String f1) {
  74. this.f1 = f1;
  75. }
  76.  
  77. public Object getF2() {
  78. return f2;
  79. }
  80.  
  81. public void setF2(Date f2) {
  82. this.f2 = f2;
  83. }
  84.  
  85. public Object getF3() {
  86. return f3;
  87. }
  88.  
  89. public void setF3(String f3) {
  90. this.f3 = f3;
  91. }
  92.  
  93. public Object getF4() {
  94. return f4;
  95. }
  96.  
  97. public void setF4(String f4) {
  98. this.f4 = f4;
  99. }
  100.  
  101. public Object getF5() {
  102. return f5;
  103. }
  104.  
  105. public void setF5(Date f5) {
  106. this.f5 = f5;
  107. }
  108.  
  109. public Object getF6() {
  110. return f6;
  111. }
  112.  
  113. public void setF6(String f6) {
  114. this.f6 = f6;
  115. }
  116.  
  117. public Object getF7() {
  118. return f7;
  119. }
  120.  
  121. public void setF7(String f7) {
  122. this.f7 = f7;
  123. }
  124.  
  125. public Object getF8() {
  126. return f8;
  127. }
  128.  
  129. public void setF8(Object f8) {
  130. this.f8 = f8;
  131. }
  132.  
  133. public Object getF9() {
  134. return f9;
  135. }
  136.  
  137. public void setF9(String f9) {
  138. this.f9 = f9;
  139. }
  140.  
  141. public Object getF10() {
  142. return f10;
  143. }
  144.  
  145. public void setF10(String f10) {
  146. this.f10 = f10;
  147. }
  148.  
  149. public Object getF11() {
  150. return f11;
  151. }
  152.  
  153. public void setF11(Object f11) {
  154. this.f11 = f11;
  155. }
  156.  
  157. public Object getF12() {
  158. return f12;
  159. }
  160.  
  161. public void setF12(String f12) {
  162. this.f12 = f12;
  163. }
  164.  
  165. public Object getF13() {
  166. return f13;
  167. }
  168.  
  169. public void setF13(String f13) {
  170. this.f13 = f13;
  171. }
  172.  
  173. public Object getF14() {
  174. return f14;
  175. }
  176.  
  177. public void setF14(Object f14) {
  178. this.f14 = f14;
  179. }
  180.  
  181. public Object getF15() {
  182. return f15;
  183. }
  184.  
  185. public void setF15(Object f15) {
  186. this.f15 = f15;
  187. }
  188.  
  189. public Object getF16() {
  190. return f16;
  191. }
  192.  
  193. public void setF16(Object f16) {
  194. this.f16 = f16;
  195. }
  196.  
  197. public Object getF17() {
  198. return f17;
  199. }
  200.  
  201. public void setF17(Object f17) {
  202. this.f17 = f17;
  203. }
  204.  
  205. public Object getF18() {
  206. return f18;
  207. }
  208.  
  209. public void setF18(Object f18) {
  210. this.f18 = f18;
  211. }
  212.  
  213. public Object getF19() {
  214. return f19;
  215. }
  216.  
  217. public void setF19(Long f19) {
  218. this.f19 = f19;
  219. }
  220.  
  221. public Object getF20() {
  222. return f20;
  223. }
  224.  
  225. public void setF20(Object f20) {
  226. this.f20 = f20;
  227. }
  228.  
  229. public Object getF21() {
  230. return f21;
  231. }
  232.  
  233. public void setF21(Object f21) {
  234. this.f21 = f21;
  235. }
  236.  
  237. public Object getF22() {
  238. return f22;
  239. }
  240.  
  241. public void setF22(Object f22) {
  242. this.f22 = f22;
  243. }
  244.  
  245. public Object getF23() {
  246. return f23;
  247. }
  248.  
  249. public void setF23(Object f23) {
  250. this.f23 = f23;
  251. }
  252.  
  253. public Object getF24() {
  254. return f24;
  255. }
  256.  
  257. public void setF24(Object f24) {
  258. this.f24 = f24;
  259. }
  260.  
  261. public Object getF25() {
  262. return f25;
  263. }
  264.  
  265. public void setF25(Object f25) {
  266. this.f25 = f25;
  267. }
  268. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement