Interface ItemStateConverter


@NonNullByDefault public interface ItemStateConverter
Convert a State to an Item accepted State.
Author:
Henning Treu - Initial contribution
  • Method Summary

    Modifier and Type
    Method
    Description
    convertToAcceptedState(@Nullable State state, @Nullable Item item)
    Convert the given State to a state which is acceptable for the given Item.
  • Method Details

    • convertToAcceptedState

      State convertToAcceptedState(@Nullable State state, @Nullable Item item)
      Convert the given State to a state which is acceptable for the given Item.
      Parameters:
      state - the State to be converted.
      item - the Item for which the given state will be converted.
      Returns:
      the converted State according to an accepted State of the given Item. Will return the original state in case item was null.