Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import lombok.*;
- import java.time.LocalDateTime;
- @NoArgsConstructor
- @AllArgsConstructor
- @Getter
- @Setter
- @Builder
- public class Match {
- private Team guest;
- private Team host;
- // private Integer guestPoints;
- // private Integer hostPoints;
- // private LocalDateTime date;
- String date;
- String score;
- Match(String host, String guest, String date, String score){
- this.host = new Team(host);
- this.guest = new Team(guest);
- this.date = date;
- this.score = score;
- }
- @Override
- public String toString() {
- return String.format("\n\nHost: %s \nGuest: %s \nDate: %s \nScore: %s\n", this.host , this.guest, this.date, this.score );
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement