public class Relocator extends Object
| Constructor and Description |
|---|
Relocator(Section section,
Version documentVersion,
Version defaultsVersion)
Initializes the relocator with the given section and document versions.
|
| Modifier and Type | Method and Description |
|---|---|
void |
apply(UpdaterSettings settings,
char separator)
Applies all appropriate relocations to the given section (in constructor), one by one using
apply(Map,
Route). |
public Relocator(@NotNull
Section section,
@NotNull
Version documentVersion,
@NotNull
Version defaultsVersion)
section - the sectiondocumentVersion - version of the document that's updated (parent of the given section)defaultsVersion - version of the defaultspublic void apply(@NotNull
UpdaterSettings settings,
char separator)
apply(Map,
Route).
More formally, iterates through all version IDs, starting from the just next version ID of the document version ID, ending (inclusive) when the currently iterated version ID is equal to the version ID of the defaults.
settings - settings used to get relocationsseparator - separator used to split string routesapply(Map, Route)Copyright © 2022. All rights reserved.