-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
351 additions
and
49 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
67 changes: 67 additions & 0 deletions
67
src/main/java/de/mediathekview/mserver/base/config/ImportFilmlistConfiguration.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
package de.mediathekview.mserver.base.config; | ||
|
||
import java.util.Objects; | ||
|
||
import de.mediathekview.mlib.filmlisten.FilmlistFormats; | ||
|
||
public class ImportFilmlistConfiguration { | ||
private final Boolean active; | ||
private final String path; | ||
private final FilmlistFormats format; | ||
private final Boolean createDiff; | ||
|
||
|
||
public ImportFilmlistConfiguration(Boolean active, String path, FilmlistFormats format, Boolean createDiff) { | ||
this.active = active; | ||
this.path = path; | ||
this.format = format; | ||
this.createDiff = createDiff; | ||
} | ||
|
||
public ImportFilmlistConfiguration() { | ||
this.active = null; | ||
this.path = null; | ||
this.format = null; | ||
this.createDiff = null; | ||
} | ||
|
||
public Boolean isActive() { | ||
return active; | ||
} | ||
public String getPath() { | ||
return path; | ||
} | ||
public FilmlistFormats getFormat() { | ||
return format; | ||
} | ||
public Boolean isCreateDiff() { | ||
return createDiff; | ||
} | ||
|
||
@Override | ||
public boolean equals(Object obj) { | ||
if (this == obj) { | ||
return true; | ||
} | ||
if (!(obj instanceof final ImportFilmlistConfiguration that)) { | ||
return false; | ||
} | ||
if (!super.equals(obj)) { | ||
return false; | ||
} | ||
return Objects.equals(isActive(), that.isActive()) | ||
&& Objects.equals(getPath(), that.getPath()) | ||
&& Objects.equals(getFormat(), that.getFormat()) | ||
&& Objects.equals(isCreateDiff(), that.isCreateDiff()); | ||
} | ||
|
||
@Override | ||
public int hashCode() { | ||
return Objects.hash( | ||
super.hashCode(), | ||
isActive(), | ||
getPath(), | ||
getFormat(), | ||
isCreateDiff()); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.