♻️ Rename “TicketLink” to “Performance”
[rhynodge.git] / src / main / java / net / pterodactylus / rhynodge / filters / webpages / savoy / Performance.java
1 package net.pterodactylus.rhynodge.filters.webpages.savoy;
2
3 import java.time.LocalDateTime;
4 import java.util.Comparator;
5
6 /**
7  * Information about a performance and a link to buy a ticket.
8  */
9 public class Performance {
10
11         private final LocalDateTime time;
12         private final String link;
13
14         public static final Comparator<Performance> byTime = (leftPerformance, rightPerformance) -> leftPerformance.getTime().compareTo(rightPerformance.getTime());
15
16         public Performance(LocalDateTime time, String link) {
17                 this.time = time;
18                 this.link = link;
19         }
20
21         public LocalDateTime getTime() {
22                 return time;
23         }
24
25         public String getLink() {
26                 return link;
27         }
28
29 }