View Javadoc
1 package net.mlw.fball.bo; 2 3 import java.io.Serializable; 4 5 import org.apache.commons.lang.builder.ToStringBuilder; 6 7 /*** 8 * 9 * @author Matthew L. Wilson 10 * @version $Revision: 1.6 $ $Date: 2004/04/01 21:51:07 $ 11 */ 12 public class Stats implements Serializable 13 { 14 private static final Integer INTEGER_ZERO = new Integer(0); 15 private static final Double DOUBLE_ZERO = new Double(0); 16 17 private Player player; 18 private Team team; 19 private String position; 20 private Integer season = new Integer(2003); 21 22 private Double quarterBackRating = DOUBLE_ZERO; 23 private Integer gamesPlayed = INTEGER_ZERO; 24 private Integer passingCompletion = INTEGER_ZERO; 25 private Integer passingAttempts = INTEGER_ZERO; 26 private Integer passingYards = INTEGER_ZERO; 27 private Integer passingTouchdowns = INTEGER_ZERO; 28 private Integer passingSacked = INTEGER_ZERO; 29 private Integer passingSackedYards = INTEGER_ZERO; 30 private Integer passingInterception = INTEGER_ZERO; 31 32 private Integer rushingAttempts = INTEGER_ZERO; 33 private Integer rushingYards = INTEGER_ZERO; 34 private Integer rushingTouchdowns = INTEGER_ZERO; 35 36 private Integer fumbles = INTEGER_ZERO; 37 private Integer funblesLost = INTEGER_ZERO; 38 39 private Integer receivingRecptions = INTEGER_ZERO; 40 private Integer receivingYards = INTEGER_ZERO; 41 private Integer receivingLong = INTEGER_ZERO; 42 private Integer receivingFirstdowns = INTEGER_ZERO; 43 private Integer receivingTouchdown = INTEGER_ZERO; 44 45 private Integer kickReturnReturns = INTEGER_ZERO; 46 private Integer kickReturnYards = INTEGER_ZERO; 47 private Integer kickReturnLong = INTEGER_ZERO; 48 49 private Integer puntReturnReturns = INTEGER_ZERO; 50 private Integer puntReturnYards = INTEGER_ZERO; 51 private Integer puntReturnLong = INTEGER_ZERO; 52 53 private Integer extraPointAttempt = INTEGER_ZERO; 54 private Integer extraPointMade = INTEGER_ZERO; 55 private Integer fieldGoalAttempt = INTEGER_ZERO; 56 private Integer fieldGoalMade = INTEGER_ZERO; 57 private Integer fieldGoalLong = INTEGER_ZERO; 58 private Integer fieldGoalRange0To19 = INTEGER_ZERO; 59 private Integer fieldGoalRange20To29 = INTEGER_ZERO; 60 private Integer fieldGoalRange30To39 = INTEGER_ZERO; 61 private Integer fieldGoalRange40To49 = INTEGER_ZERO; 62 private Integer fieldGoalRange50Plus = INTEGER_ZERO; 63 64 /*** 65 */ 66 protected Stats() 67 { 68 69 } 70 71 /*** 72 * @return Returns the fumbles. 73 */ 74 public Integer getFumbles() 75 { 76 return fumbles; 77 } 78 79 /*** 80 * @param fumbles The fumbles to set. 81 */ 82 public void setFumbles(Integer fumbles) 83 { 84 this.fumbles = fumbles; 85 } 86 87 /*** 88 * @return Returns the funblesLost. 89 */ 90 public Integer getFunblesLost() 91 { 92 return funblesLost; 93 } 94 95 /*** 96 * @param funblesLost The funblesLost to set. 97 */ 98 public void setFunblesLost(Integer funblesLost) 99 { 100 this.funblesLost = funblesLost; 101 } 102 103 /*** 104 * @return Returns the gamesPlayed. 105 */ 106 public Integer getGamesPlayed() 107 { 108 return gamesPlayed; 109 } 110 111 /*** 112 * @param gamesPlayed The gamesPlayed to set. 113 */ 114 public void setGamesPlayed(Integer gamesPlayed) 115 { 116 this.gamesPlayed = gamesPlayed; 117 } 118 119 /*** 120 * @return Returns the kickReturnLong. 121 */ 122 public Integer getKickReturnLong() 123 { 124 return kickReturnLong; 125 } 126 127 /*** 128 * @param kickReturnLong The kickReturnLong to set. 129 */ 130 public void setKickReturnLong(Integer kickReturnLong) 131 { 132 this.kickReturnLong = kickReturnLong; 133 } 134 135 /*** 136 * @return Returns the kickReturnReturns. 137 */ 138 public Integer getKickReturnReturns() 139 { 140 return kickReturnReturns; 141 } 142 143 /*** 144 * @param kickReturnReturns The kickReturnReturns to set. 145 */ 146 public void setKickReturnReturns(Integer kickReturnReturns) 147 { 148 this.kickReturnReturns = kickReturnReturns; 149 } 150 151 /*** 152 * @return Returns the kickReturnYards. 153 */ 154 public Integer getKickReturnYards() 155 { 156 return kickReturnYards; 157 } 158 159 /*** 160 * @param kickReturnYards The kickReturnYards to set. 161 */ 162 public void setKickReturnYards(Integer kickReturnYards) 163 { 164 this.kickReturnYards = kickReturnYards; 165 } 166 167 /*** 168 * @return Returns the passingAttempts. 169 */ 170 public Integer getPassingAttempts() 171 { 172 return passingAttempts; 173 } 174 175 /*** 176 * @param passingAttempts The passingAttempts to set. 177 */ 178 public void setPassingAttempts(Integer passingAttempts) 179 { 180 this.passingAttempts = passingAttempts; 181 } 182 183 /*** 184 * @return Returns the passingCompletion. 185 */ 186 public Integer getPassingCompletion() 187 { 188 return passingCompletion; 189 } 190 191 /*** 192 * @param passingCompletion The passingCompletion to set. 193 */ 194 public void setPassingCompletion(Integer passingCompletion) 195 { 196 this.passingCompletion = passingCompletion; 197 } 198 199 /*** 200 * @return Returns the passingSacked. 201 */ 202 public Integer getPassingSacked() 203 { 204 return passingSacked; 205 } 206 207 /*** 208 * @param passingSacked The passingSacked to set. 209 */ 210 public void setPassingSacked(Integer passingSacked) 211 { 212 this.passingSacked = passingSacked; 213 } 214 215 /*** 216 * @return Returns the passingSackedYards. 217 */ 218 public Integer getPassingSackedYards() 219 { 220 return passingSackedYards; 221 } 222 223 /*** 224 * @param passingSackedYards The passingSackedYards to set. 225 */ 226 public void setPassingSackedYards(Integer passingSackedYards) 227 { 228 this.passingSackedYards = passingSackedYards; 229 } 230 231 /*** 232 * @return Returns the passingTouchdowns. 233 */ 234 public Integer getPassingTouchdowns() 235 { 236 return passingTouchdowns; 237 } 238 239 /*** 240 * @param passingTouchdowns The passingTouchdowns to set. 241 */ 242 public void setPassingTouchdowns(Integer passingTouchdowns) 243 { 244 this.passingTouchdowns = passingTouchdowns; 245 } 246 247 /*** 248 * @return Returns the passingYards. 249 */ 250 public Integer getPassingYards() 251 { 252 return passingYards; 253 } 254 255 /*** 256 * @param passingYards The passingYards to set. 257 */ 258 public void setPassingYards(Integer passingYards) 259 { 260 this.passingYards = passingYards; 261 } 262 263 /*** 264 * @return Returns the player. 265 */ 266 public Player getPlayer() 267 { 268 return player; 269 } 270 271 /*** 272 * @param player The player to set. 273 */ 274 public void setPlayer(Player player) 275 { 276 this.player = player; 277 } 278 279 /*** 280 * @return Returns the puntReturnLong. 281 */ 282 public Integer getPuntReturnLong() 283 { 284 return puntReturnLong; 285 } 286 287 /*** 288 * @param puntReturnLong The puntReturnLong to set. 289 */ 290 public void setPuntReturnLong(Integer puntReturnLong) 291 { 292 this.puntReturnLong = puntReturnLong; 293 } 294 295 /*** 296 * @return Returns the puntReturnReturns. 297 */ 298 public Integer getPuntReturnReturns() 299 { 300 return puntReturnReturns; 301 } 302 303 /*** 304 * @param puntReturnReturns The puntReturnReturns to set. 305 */ 306 public void setPuntReturnReturns(Integer puntReturnReturns) 307 { 308 this.puntReturnReturns = puntReturnReturns; 309 } 310 311 /*** 312 * @return Returns the puntReturnYards. 313 */ 314 public Integer getPuntReturnYards() 315 { 316 return puntReturnYards; 317 } 318 319 /*** 320 * @param puntReturnYards The puntReturnYards to set. 321 */ 322 public void setPuntReturnYards(Integer puntReturnYards) 323 { 324 this.puntReturnYards = puntReturnYards; 325 } 326 327 /*** 328 * @return Returns the receivingFirstdowns. 329 */ 330 public Integer getReceivingFirstdowns() 331 { 332 return receivingFirstdowns; 333 } 334 335 /*** 336 * @param receivingFirstdowns The receivingFirstdowns to set. 337 */ 338 public void setReceivingFirstdowns(Integer receivingFirstdowns) 339 { 340 this.receivingFirstdowns = receivingFirstdowns; 341 } 342 343 /*** 344 * @return Returns the receivingLong. 345 */ 346 public Integer getReceivingLong() 347 { 348 return receivingLong; 349 } 350 351 /*** 352 * @param receivingLong The receivingLong to set. 353 */ 354 public void setReceivingLong(Integer receivingLong) 355 { 356 this.receivingLong = receivingLong; 357 } 358 359 /*** 360 * @return Returns the receivingRecptions. 361 */ 362 public Integer getReceivingRecptions() 363 { 364 return receivingRecptions; 365 } 366 367 /*** 368 * @param receivingRecptions The receivingRecptions to set. 369 */ 370 public void setReceivingRecptions(Integer receivingRecptions) 371 { 372 this.receivingRecptions = receivingRecptions; 373 } 374 375 /*** 376 * @return Returns the receivingTouchdown. 377 */ 378 public Integer getReceivingTouchdown() 379 { 380 return receivingTouchdown; 381 } 382 383 /*** 384 * @param receivingTouchdown The receivingTouchdown to set. 385 */ 386 public void setReceivingTouchdown(Integer receivingTouchdown) 387 { 388 this.receivingTouchdown = receivingTouchdown; 389 } 390 391 /*** 392 * @return Returns the receivingYards. 393 */ 394 public Integer getReceivingYards() 395 { 396 return receivingYards; 397 } 398 399 /*** 400 * @param receivingYards The receivingYards to set. 401 */ 402 public void setReceivingYards(Integer receivingYards) 403 { 404 this.receivingYards = receivingYards; 405 } 406 407 /*** 408 * @return Returns the rushingTouchdowns. 409 */ 410 public Integer getRushingTouchdowns() 411 { 412 return rushingTouchdowns; 413 } 414 415 /*** 416 * @param rushingTouchdowns The rushingTouchdowns to set. 417 */ 418 public void setRushingTouchdowns(Integer rushingTouchdowns) 419 { 420 this.rushingTouchdowns = rushingTouchdowns; 421 } 422 423 /*** 424 * @return Returns the rushingYards. 425 */ 426 public Integer getRushingYards() 427 { 428 return rushingYards; 429 } 430 431 /*** 432 * @param rushingYards The rushingYards to set. 433 */ 434 public void setRushingYards(Integer rushingYards) 435 { 436 this.rushingYards = rushingYards; 437 } 438 439 /*** 440 * @return Returns the team. 441 */ 442 public Team getTeam() 443 { 444 return team; 445 } 446 447 /*** 448 * @param team The team to set. 449 */ 450 public void setTeam(Team team) 451 { 452 this.team = team; 453 } 454 455 /*** 456 * @return Returns the season. 457 */ 458 public Integer getSeason() 459 { 460 return season; 461 } 462 463 /*** 464 * @param season The season to set. 465 */ 466 public void setSeason(Integer season) 467 { 468 this.season = season; 469 } 470 471 /*** 472 * @return Returns the passingInterception. 473 */ 474 public Integer getPassingInterception() 475 { 476 return passingInterception; 477 } 478 479 /*** 480 * @param passingInterception The passingInterception to set. 481 */ 482 public void setPassingInterception(Integer passingInterception) 483 { 484 this.passingInterception = passingInterception; 485 } 486 487 /*** 488 * @return Returns the position. 489 */ 490 public String getPosition() 491 { 492 return position; 493 } 494 495 /*** 496 * @param position The position to set. 497 */ 498 public void setPosition(String position) 499 { 500 this.position = position; 501 } 502 503 /*** 504 * @return Returns the quarterBackRating. 505 */ 506 public Double getQuarterBackRating() 507 { 508 return quarterBackRating; 509 } 510 511 /*** 512 * @param quarterBackRating The quarterBackRating to set. 513 */ 514 public void setQuarterBackRating(Double quarterBackRating) 515 { 516 this.quarterBackRating = quarterBackRating; 517 } 518 519 /*** 520 * @return Returns the rushingAttempts. 521 */ 522 public Integer getRushingAttempts() 523 { 524 return rushingAttempts; 525 } 526 527 /*** 528 * @param rushingAttempts The rushingAttempts to set. 529 */ 530 public void setRushingAttempts(Integer rushingAttempts) 531 { 532 this.rushingAttempts = rushingAttempts; 533 } 534 535 /*** @see java.lang.Object#toString() 536 */ 537 public String toString() 538 { 539 return new ToStringBuilder(this) 540 .append("Season", season) 541 .append("Team", team) 542 .append("GamesPlayed", gamesPlayed) 543 .append("Season", season) 544 .append("ReceivingRecptions", receivingRecptions) 545 .append("ReceivingYards", receivingYards) 546 .append("ReceivingLong", receivingLong) 547 .append("ReceivingFirstdowns", receivingFirstdowns) 548 .append("ReceivingTouchdown", receivingTouchdown) 549 .append("KickReturnReturns", kickReturnReturns) 550 .append("KickReturnYards", kickReturnYards) 551 .append("KickReturnLong", kickReturnLong) 552 .append("PuntReturnReturns", puntReturnReturns) 553 .append("PuntReturnYards", puntReturnYards) 554 .append("PuntReturnLong", puntReturnLong) 555 .append("Fumbles", fumbles) 556 .append("FunblesLost", funblesLost) 557 .toString(); 558 } 559 560 /*** @see java.lang.Object#equals(java.lang.Object) 561 */ 562 public boolean equals(Object arg0) 563 { 564 if (arg0 instanceof Stats) 565 { 566 Stats stats = (Stats) arg0; 567 return (stats.getSeason().equals(season) && player.getId().equals(player.getId())); 568 } 569 else 570 { 571 return false; 572 } 573 } 574 575 /*** @see java.lang.Object#hashCode() 576 */ 577 public int hashCode() 578 { 579 return new StringBuffer(player.getId()).append(season.toString()).hashCode(); 580 } 581 582 /*** 583 * @return Returns the extraPointAttempt. 584 */ 585 public Integer getExtraPointAttempt() 586 { 587 return extraPointAttempt; 588 } 589 590 /*** 591 * @param extraPointAttempt The extraPointAttempt to set. 592 */ 593 public void setExtraPointAttempt(Integer extraPointAttempt) 594 { 595 this.extraPointAttempt = extraPointAttempt; 596 } 597 598 /*** 599 * @return Returns the extraPointMade. 600 */ 601 public Integer getExtraPointMade() 602 { 603 return extraPointMade; 604 } 605 606 /*** 607 * @param extraPointMade The extraPointMade to set. 608 */ 609 public void setExtraPointMade(Integer extraPointMade) 610 { 611 this.extraPointMade = extraPointMade; 612 } 613 614 /*** 615 * @return Returns the fieldGoalAttempt. 616 */ 617 public Integer getFieldGoalAttempt() 618 { 619 return fieldGoalAttempt; 620 } 621 622 /*** 623 * @param fieldGoalAttempt The fieldGoalAttempt to set. 624 */ 625 public void setFieldGoalAttempt(Integer fieldGoalAttempt) 626 { 627 this.fieldGoalAttempt = fieldGoalAttempt; 628 } 629 630 /*** 631 * @return Returns the fieldGoalLong. 632 */ 633 public Integer getFieldGoalLong() 634 { 635 return fieldGoalLong; 636 } 637 638 /*** 639 * @param fieldGoalLong The fieldGoalLong to set. 640 */ 641 public void setFieldGoalLong(Integer fieldGoalLong) 642 { 643 this.fieldGoalLong = fieldGoalLong; 644 } 645 646 /*** 647 * @return Returns the fieldGoalMade. 648 */ 649 public Integer getFieldGoalMade() 650 { 651 return fieldGoalMade; 652 } 653 654 /*** 655 * @param fieldGoalMade The fieldGoalMade to set. 656 */ 657 public void setFieldGoalMade(Integer fieldGoalMade) 658 { 659 this.fieldGoalMade = fieldGoalMade; 660 } 661 662 /*** 663 * @return Returns the fieldGoalRange0To19. 664 */ 665 public Integer getFieldGoalRange0To19() 666 { 667 return fieldGoalRange0To19; 668 } 669 670 /*** 671 * @param fieldGoalRange0To19 The fieldGoalRange0To19 to set. 672 */ 673 public void setFieldGoalRange0To19(Integer fieldGoalRange0To19) 674 { 675 this.fieldGoalRange0To19 = fieldGoalRange0To19; 676 } 677 678 /*** 679 * @return Returns the fieldGoalRange20To29. 680 */ 681 public Integer getFieldGoalRange20To29() 682 { 683 return fieldGoalRange20To29; 684 } 685 686 /*** 687 * @param fieldGoalRange20To29 The fieldGoalRange20To29 to set. 688 */ 689 public void setFieldGoalRange20To29(Integer fieldGoalRange20To29) 690 { 691 this.fieldGoalRange20To29 = fieldGoalRange20To29; 692 } 693 694 /*** 695 * @return Returns the fieldGoalRange30To39. 696 */ 697 public Integer getFieldGoalRange30To39() 698 { 699 return fieldGoalRange30To39; 700 } 701 702 /*** 703 * @param fieldGoalRange30To39 The fieldGoalRange30To39 to set. 704 */ 705 public void setFieldGoalRange30To39(Integer fieldGoalRange30To39) 706 { 707 this.fieldGoalRange30To39 = fieldGoalRange30To39; 708 } 709 710 /*** 711 * @return Returns the fieldGoalRange40To49. 712 */ 713 public Integer getFieldGoalRange40To49() 714 { 715 return fieldGoalRange40To49; 716 } 717 718 /*** 719 * @param fieldGoalRange40To49 The fieldGoalRange40To49 to set. 720 */ 721 public void setFieldGoalRange40To49(Integer fieldGoalRange40To49) 722 { 723 this.fieldGoalRange40To49 = fieldGoalRange40To49; 724 } 725 726 /*** 727 * @return Returns the fieldGoalRange50Plus. 728 */ 729 public Integer getFieldGoalRange50Plus() 730 { 731 return fieldGoalRange50Plus; 732 } 733 734 /*** 735 * @param fieldGoalRange50Plus The fieldGoalRange50Plus to set. 736 */ 737 public void setFieldGoalRange50Plus(Integer fieldGoalRange50Plus) 738 { 739 this.fieldGoalRange50Plus = fieldGoalRange50Plus; 740 } 741 742 }

This page was automatically generated by Maven