public class OrderCompletionReport extends Object implements org.springframework.data.util.Streamable<OrderCompletionReport.OrderLineCompletion>
| Modifier and Type | Class and Description |
|---|---|
static class |
OrderCompletionReport.CompletionStatus
The status of a completion.
|
static class |
OrderCompletionReport.OrderLineCompletion
The completion status of an
OrderLine. |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
canEqual(Object other) |
boolean |
equals(Object o) |
static OrderCompletionReport |
failed(Order order)
Creates an
OrderCompletionReport for an Order that's marked as failed. |
static OrderCompletionReport |
forCompletions(Order order,
Iterable<OrderCompletionReport.OrderLineCompletion> completions)
Creates a new
OrderCompletionReport for the given Order and OrderCompletionReport.OrderLineCompletions. |
Order |
getOrder() |
OrderCompletionReport.CompletionStatus |
getStatus() |
boolean |
hasErrors()
Returns whether there report contains any errors.
|
int |
hashCode() |
Iterator<OrderCompletionReport.OrderLineCompletion> |
iterator() |
static OrderCompletionReport |
success(Order order)
Creates an
OrderCompletionReport representing a successful verification of the given Order. |
String |
toString() |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitand, empty, filter, flatMap, get, isEmpty, map, of, of, of, streamforEach, spliteratorpublic static OrderCompletionReport success(Order order)
OrderCompletionReport representing a successful verification of the given Order.order - must not be null.public static OrderCompletionReport failed(Order order)
OrderCompletionReport for an Order that's marked as failed.order - must not be null.public static OrderCompletionReport forCompletions(Order order, Iterable<OrderCompletionReport.OrderLineCompletion> completions)
OrderCompletionReport for the given Order and OrderCompletionReport.OrderLineCompletions.order - must not be null.completions - must not be null.public boolean hasErrors()
OrderCompletionReport.OrderLineCompletion (e.g. using Streamable.stream() to access the individual completions).public Iterator<OrderCompletionReport.OrderLineCompletion> iterator()
iterator in interface Iterable<OrderCompletionReport.OrderLineCompletion>protected boolean canEqual(Object other)
@NonNull public Order getOrder()
@NonNull public OrderCompletionReport.CompletionStatus getStatus()
Copyright © 2018. All rights reserved.