Package space.arim.dazzleconf.migration
Interface Transition<C_OLD,C_NEW>
- Type Parameters:
C_OLD- the old config typeC_NEW- the new config type
public interface Transition<C_OLD,C_NEW>
Converter interface for moving from one configuration object to another
-
Method Summary
Modifier and TypeMethodDescriptiondefault <C_NEWER> @NonNull Transition<C_OLD, C_NEWER> chain(@NonNull Transition<C_NEW, C_NEWER> next) Chains on another transition after this one@NonNull C_NEWmigrateFrom(@NonNull C_OLD previous, @NonNull MigrateContext migrateContext) Migrates from one configuration to another
-
Method Details
-
migrateFrom
Migrates from one configuration to another- Parameters:
previous- the old config objectmigrateContext- the migration context- Returns:
- the new config object
-
chain
Chains on another transition after this one- Type Parameters:
C_NEWER- the newest config type- Parameters:
next- the next transition- Returns:
- the combined product
-