Class LanguageMerge
java.lang.Object
fr.fuzeblocks.homeplugin.language.LanguageMerge
The type Language merge.
-
Constructor Summary
ConstructorsConstructorDescriptionLanguageMerge(File editedFile, File latestFile) Instantiates a new Language merge. -
Method Summary
Modifier and TypeMethodDescriptionvoidSimple merge: copies the edited config, adds missing keys from the latest version, without removing any key.voidSynchronized merge: copies the edited config, adds missing keys, removes keys no longer present in the latest version.booleanSaves the merged config to the edited file.booleanPush to boolean.
-
Constructor Details
-
LanguageMerge
Instantiates a new Language merge.- Parameters:
editedFile- the edited filelatestFile- the latest file
-
-
Method Details
-
mergeAddOnly
public void mergeAddOnly()Simple merge: copies the edited config, adds missing keys from the latest version, without removing any key. -
mergeSync
public void mergeSync()Synchronized merge: copies the edited config, adds missing keys, removes keys no longer present in the latest version. -
pushChanges
public boolean pushChanges()Saves the merged config to the edited file.- Returns:
- true if saving succeeded, false otherwise.
-
pushTo
Push to boolean.- Parameters:
destinationFile- the destination file- Returns:
- the boolean
-