Advertisement
Guest User

Untitled

a guest
Jan 16th, 2019
51
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.72 KB | None | 0 0
  1. import lombok.*;
  2.  
  3. import java.time.LocalDateTime;
  4.  
  5. @NoArgsConstructor
  6. @AllArgsConstructor
  7. @Getter
  8. @Setter
  9. @Builder
  10. public class Match {
  11.  
  12. private Team guest;
  13. private Team host;
  14.  
  15. // private Integer guestPoints;
  16. // private Integer hostPoints;
  17. // private LocalDateTime date;
  18.  
  19. String date;
  20. String score;
  21.  
  22. Match(String host, String guest, String date, String score){
  23. this.host = new Team(host);
  24. this.guest = new Team(guest);
  25. this.date = date;
  26. this.score = score;
  27. }
  28.  
  29. @Override
  30. public String toString() {
  31. return String.format("\n\nHost: %s \nGuest: %s \nDate: %s \nScore: %s\n", this.host , this.guest, this.date, this.score );
  32. }
  33. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement