Interface ItemStateConverter

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

      • convertToAcceptedState

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