X-Git-Url: https://git.pterodactylus.net/?p=rhynodge.git;a=blobdiff_plain;f=src%2Fmain%2Fjava%2Fnet%2Fpterodactylus%2Frhynodge%2Ffilters%2Fwebpages%2Fsavoy%2FPerformance.java;fp=src%2Fmain%2Fjava%2Fnet%2Fpterodactylus%2Frhynodge%2Ffilters%2Fwebpages%2Fsavoy%2FPerformance.java;h=0000000000000000000000000000000000000000;hp=dd4c1658abaecd474ad6e1a95688bd635a43c2f6;hb=a64a72917db9c15fa06526cf9de37e75434d1c3a;hpb=70d104f42e47adf47d0f546afc716374bd56fe3a diff --git a/src/main/java/net/pterodactylus/rhynodge/filters/webpages/savoy/Performance.java b/src/main/java/net/pterodactylus/rhynodge/filters/webpages/savoy/Performance.java deleted file mode 100644 index dd4c165..0000000 --- a/src/main/java/net/pterodactylus/rhynodge/filters/webpages/savoy/Performance.java +++ /dev/null @@ -1,57 +0,0 @@ -package net.pterodactylus.rhynodge.filters.webpages.savoy; - -import com.fasterxml.jackson.annotation.JsonProperty; - -import java.time.LocalDateTime; -import java.util.Objects; - -/** - * Information about a performance and a link to buy a ticket. - */ -public class Performance { - - @JsonProperty - private final LocalDateTime time; - - @JsonProperty - private final String type; - - @JsonProperty - private final String link; - - public Performance() { - this(null, null, null); - } - - public Performance(LocalDateTime time, String type, String link) { - this.time = time; - this.type = type; - this.link = link; - } - - public LocalDateTime getTime() { - return time; - } - - public String getType() { - return type; - } - - public String getLink() { - return link; - } - - @Override - public int hashCode() { - return Objects.hash(time, type, link); - } - - @Override - public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - Performance that = (Performance) o; - return Objects.equals(time, that.time) && Objects.equals(type, that.type) && Objects.equals(link, that.link); - } - -}