Class ProductSwitchResults.SuccessfulProductSwitch
java.lang.Object
org.faktorips.runtime.productswitch.ProductSwitchResults.SuccessfulProductSwitch
- All Implemented Interfaces:
ProductSwitchResults.ProductSwitchResult
- Enclosing class:
- ProductSwitchResults
public static class ProductSwitchResults.SuccessfulProductSwitch
extends Object
implements ProductSwitchResults.ProductSwitchResult
Represents the result of a successful product switch operation.
-
Constructor Summary
ConstructorsConstructorDescriptionSuccessfulProductSwitch(IProductComponent oldProduct, IProductComponent newProduct) Constructs a newSuccessfulProductSwitchinstance with the given old and new product components. -
Method Summary
Modifier and TypeMethodDescriptionboolean
-
Constructor Details
-
SuccessfulProductSwitch
Constructs a newSuccessfulProductSwitchinstance with the given old and new product components.- Parameters:
oldProduct- the old product componentnewProduct- the new product component
-
-
Method Details
-
getOldProduct
- Returns:
- the old product component
-
getNewProduct
- Returns:
- the new product component
-
isSuccessful
public boolean isSuccessful()- Specified by:
isSuccessfulin interfaceProductSwitchResults.ProductSwitchResult- Returns:
trueif the switch operation was successful; otherwise returnsfalse.
-