-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move backup classes to a new package
- Loading branch information
Showing
12 changed files
with
43 additions
and
27 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
10 changes: 0 additions & 10 deletions
10
...cher/src/main/java/com/italankin/lnch/feature/settings/backup/impl/PreferencesBackup.java
This file was deleted.
Oops, something went wrong.
2 changes: 1 addition & 1 deletion
2
.../feature/settings/backup/impl/Backup.java → ...m/italankin/lnch/model/backup/Backup.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
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
2 changes: 1 addition & 1 deletion
2
...ettings/backup/impl/BackupReaderImpl.java → ...n/lnch/model/backup/BackupReaderImpl.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
2 changes: 1 addition & 1 deletion
2
...ure/settings/backup/impl/BackupUtils.java → ...lankin/lnch/model/backup/BackupUtils.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
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
2 changes: 1 addition & 1 deletion
2
...ettings/backup/impl/BackupWriterImpl.java → ...n/lnch/model/backup/BackupWriterImpl.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
18 changes: 18 additions & 0 deletions
18
launcher/src/main/java/com/italankin/lnch/model/backup/PreferencesBackup.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,18 @@ | ||
package com.italankin.lnch.model.backup; | ||
|
||
import java.util.Map; | ||
|
||
public interface PreferencesBackup { | ||
|
||
/** | ||
* @return a dump of current preferences' values | ||
*/ | ||
Map<String, Object> read(); | ||
|
||
/** | ||
* Override preference' values with a values from the {@code map} | ||
* | ||
* @param map a map of preference keys and their values | ||
*/ | ||
void write(Map<String, ?> map); | ||
} |
2 changes: 1 addition & 1 deletion
2
...gs/backup/impl/PreferencesBackupImpl.java → ...h/model/backup/PreferencesBackupImpl.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