Interface Transition<C_OLD,C_NEW>

Type Parameters:
C_OLD - the old config type
C_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 Type
    Method
    Description
    default <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_NEW
    migrateFrom(@NonNull C_OLD previous, @NonNull MigrateContext migrateContext)
    Migrates from one configuration to another
  • Method Details

    • migrateFrom

      @NonNull C_NEW migrateFrom(@NonNull C_OLD previous, @NonNull MigrateContext migrateContext)
      Migrates from one configuration to another
      Parameters:
      previous - the old config object
      migrateContext - the migration context
      Returns:
      the new config object
    • chain

      default <C_NEWER> @NonNull Transition<C_OLD,C_NEWER> chain(@NonNull Transition<C_NEW,C_NEWER> next)
      Chains on another transition after this one
      Type Parameters:
      C_NEWER - the newest config type
      Parameters:
      next - the next transition
      Returns:
      the combined product