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 TypeMethodDescriptionboolean
Creates anOrderCompletionReport.OrderLineCompletion
representing an erroneousOrderLine
alongside an error message.@NonNull OrderLine
int
hashCode()
boolean
Returns whether theOrderCompletionReport.OrderLineCompletion
represents a failure.Applies the givenConsumer
in case theOrderCompletionReport.OrderLineCompletion
is successful.Creates anOrderCompletionReport.OrderLineCompletion
representing the successful completion of anOrderLine
.toString()
-
Method Details
-
skipped
-
success
Creates anOrderCompletionReport.OrderLineCompletion
representing the successful completion of anOrderLine
.- Parameters:
orderLine
- must not be null.- Returns:
-
error
Creates anOrderCompletionReport.OrderLineCompletion
representing an erroneousOrderLine
alongside an error message.- Parameters:
orderLine
- must not be null.message
- must not be null.- Returns:
-
isFailure
public boolean isFailure()Returns whether theOrderCompletionReport.OrderLineCompletion
represents a failure.- Returns:
-
onSuccess
Applies the givenConsumer
in case theOrderCompletionReport.OrderLineCompletion
is successful.- Parameters:
action
- must not be null.- Returns:
- the current
OrderCompletionReport.OrderLineCompletion
. - Since:
- 7.1
-
toString
-
getOrderLine
-
getStatus
-
getMessage
-
equals
-
hashCode
public int hashCode()
-