public final class MigrationUtils extends Object
| Modifier and Type | Method and Description |
|---|---|
static <T> boolean |
moveProperty(@NotNull Property<T> oldProperty,
@NotNull Property<T> newProperty,
@NotNull PropertyReader reader,
@NotNull ConfigurationData configurationData)
Utility method: moves the value of an old property to a new property.
|
public static <T> boolean moveProperty(@NotNull
@NotNull Property<T> oldProperty,
@NotNull
@NotNull Property<T> newProperty,
@NotNull
@NotNull PropertyReader reader,
@NotNull
@NotNull ConfigurationData configurationData)
T - the type of the propertyoldProperty - the old property (create a temporary Property object with the path)newProperty - the new property to move the value toreader - the property reader to read the configuration file fromconfigurationData - configuration data to update a property's valueCopyright © 2016–2023 The AuthMe Team. All rights reserved.