@NonNullByDefault
public interface ItemStateConverter
- Author:
- Henning Treu - Initial contribution
-
Method Summary
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.