nheron

Untitled

Oct 6th, 2016
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.49 KB | None | 0 0
  1. /*
  2. * Copyright 2014 Pymma Software
  3. *
  4. * Licensed under the Apache License, Version 2.0 (the "License");
  5. * you may not use this file except in compliance with the License.
  6. * You may obtain a copy of the License at
  7. *
  8. * http://www.apache.org/licenses/LICENSE-2.0
  9. *
  10. * Unless required by applicable law or agreed to in writing, software
  11. * distributed under the License is distributed on an "AS IS" BASIS,
  12. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13. * See the License for the specific language governing permissions and
  14. * limitations under the License.
  15. */
  16. package org.chtijbug.example.swimmingpool;
  17.  
  18. import java.util.Date;
  19.  
  20.  
  21. public class Period extends BaseElement {
  22. private Date desidedStartDate;
  23. private SeasonType seasonType;
  24.  
  25. public Period() {
  26. }
  27.  
  28. public Date getDesidedStartDate() {
  29. return desidedStartDate;
  30. }
  31.  
  32. public void setDesidedStartDate(Date desidedStartDate) {
  33. this.desidedStartDate = desidedStartDate;
  34. }
  35.  
  36. public SeasonType getSeasonType() {
  37. return seasonType;
  38. }
  39.  
  40. public void setSeasonType(SeasonType seasonType) {
  41. this.seasonType = seasonType;
  42. }
  43.  
  44. @Override
  45. public String toString() {
  46. final StringBuffer sb = new StringBuffer("Period{");
  47. sb.append("desidedStartDate=").append(desidedStartDate);
  48. sb.append(", seasonType=").append(seasonType);
  49. sb.append('}');
  50. return sb.toString();
  51. }
  52. }
Add Comment
Please, Sign In to add comment