Package org.salespointframework.order
Class OrderCompletionReport.OrderLineCompletion
java.lang.Object
org.salespointframework.order.OrderCompletionReport.OrderLineCompletion
- Enclosing class:
- OrderCompletionReport
The completion status of an
OrderLine.- Author:
- Oliver Gierke
-
Method Summary
Modifier and TypeMethodDescriptionbooleanCreates anOrderCompletionReport.OrderLineCompletionrepresenting an erroneousOrderLinealongside an error message.@NonNull OrderLineinthashCode()booleanReturns whether theOrderCompletionReport.OrderLineCompletionrepresents a failure.Applies the givenConsumerin case theOrderCompletionReport.OrderLineCompletionis successful.Creates anOrderCompletionReport.OrderLineCompletionrepresenting the successful completion of anOrderLine.toString()
-
Method Details
-
skipped
-
success
Creates anOrderCompletionReport.OrderLineCompletionrepresenting the successful completion of anOrderLine.- Parameters:
orderLine- must not be null.- Returns:
-
error
Creates anOrderCompletionReport.OrderLineCompletionrepresenting an erroneousOrderLinealongside an error message.- Parameters:
orderLine- must not be null.message- must not be null.- Returns:
-
isFailure
public boolean isFailure()Returns whether theOrderCompletionReport.OrderLineCompletionrepresents a failure.- Returns:
-
onSuccess
Applies the givenConsumerin case theOrderCompletionReport.OrderLineCompletionis successful.- Parameters:
action- must not be null.- Returns:
- the current
OrderCompletionReport.OrderLineCompletion. - Since:
- 7.1
-
toString
-
getOrderLine
-
getStatus
-
getMessage
-
equals
-
hashCode
public int hashCode()
-