public class Trade extends java.lang.Object implements java.io.Serializable
A Trade contains "global" agreements, delivery and settlement part and an item based part.
Constructor and Description |
---|
Trade() |
Modifier and Type | Method and Description |
---|---|
Trade |
addItem(Item item)
Adds an trade item.
|
Agreement |
getAgreement()
Gets the trade agreement.
|
Delivery |
getDelivery()
Gets the trade delivery.
|
java.util.List<Item> |
getItems()
Gets the trade items.
|
Settlement |
getSettlement()
Gets the trade settlement.
|
Trade |
setAgreement(Agreement agreement)
Sets the trade agreement.
|
Trade |
setDelivery(Delivery delivery)
Sets the trade delivery.
|
Trade |
setSettlement(Settlement tradeSettlement)
Sets the trade settlement.
|
public Trade()
public Trade addItem(Item item)
Adds an trade item.
item
- the item@NotNull public Agreement getAgreement()
Gets the trade agreement.
@NotNull public Delivery getDelivery()
Gets the trade delivery.
@NotNull public Settlement getSettlement()
Gets the trade settlement.
public Trade setAgreement(Agreement agreement)
Sets the trade agreement.
agreement
- the new agreementpublic Trade setDelivery(Delivery delivery)
Sets the trade delivery.
delivery
- the new trade deliverypublic Trade setSettlement(Settlement tradeSettlement)
Sets the trade settlement.
tradeSettlement
- the new trade settlementCopyright © 2014-2018 Konik.io. All Rights Reserved.