-
Notifications
You must be signed in to change notification settings - Fork 0
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
9 changed files
with
238 additions
and
9 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
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
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,71 @@ | ||
package model; | ||
|
||
import java.nio.file.Path; | ||
import java.util.Objects; | ||
|
||
public class Intro { | ||
private Path filePath; | ||
private Path backupPath; | ||
private String label; | ||
private boolean original; | ||
|
||
public Intro(Path filePath, boolean isOriginal, String label) { | ||
this.filePath = filePath; | ||
this.label = label; | ||
this.original = isOriginal; | ||
} | ||
|
||
public Intro() { | ||
|
||
} | ||
|
||
public Path getFilePath() { | ||
return filePath; | ||
} | ||
|
||
public void setFilePath(Path filePath) { | ||
this.filePath = filePath; | ||
} | ||
|
||
public Path getBackupPath() { | ||
return backupPath; | ||
} | ||
|
||
public void setBackupPath(Path backupPath) { | ||
this.backupPath = backupPath; | ||
} | ||
|
||
public String getLabel() { | ||
return label; | ||
} | ||
|
||
public void setLabel(String label) { | ||
this.label = label; | ||
} | ||
|
||
public boolean isOriginal() { | ||
return original; | ||
} | ||
|
||
public void setOriginal(boolean original) { | ||
this.original = original; | ||
} | ||
|
||
@Override | ||
public boolean equals(Object o) { | ||
if (this == o) return true; | ||
if (o == null || getClass() != o.getClass()) return false; | ||
Intro intro = (Intro) o; | ||
return original == intro.original; | ||
} | ||
|
||
@Override | ||
public int hashCode() { | ||
return Objects.hashCode(original); | ||
} | ||
|
||
@Override | ||
public String toString() { | ||
return label; | ||
} | ||
} |
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.