public class Trade
extends java.lang.Object
implements java.io.Serializable
Constructor and Description |
---|
Trade() |
Trade(long id) |
Trade(java.lang.String isin,
long quantity,
java.math.BigDecimal price,
java.lang.String customer) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getCustomer() |
long |
getId() |
java.lang.String |
getIsin() |
java.math.BigDecimal |
getPrice() |
long |
getQuantity() |
long |
getVersion() |
int |
hashCode() |
void |
setCustomer(java.lang.String customer) |
void |
setId(long id) |
void |
setIsin(java.lang.String isin) |
void |
setPrice(java.math.BigDecimal price) |
void |
setQuantity(long quantity) |
void |
setVersion(long version) |
java.lang.String |
toString() |
public Trade()
public Trade(java.lang.String isin, long quantity, java.math.BigDecimal price, java.lang.String customer)
public Trade(long id)
id
- id of the tradepublic long getId()
public void setId(long id)
public long getVersion()
public void setVersion(long version)
public void setCustomer(java.lang.String customer)
public void setIsin(java.lang.String isin)
public void setPrice(java.math.BigDecimal price)
public void setQuantity(long quantity)
public java.lang.String getIsin()
public java.math.BigDecimal getPrice()
public long getQuantity()
public java.lang.String getCustomer()
public java.lang.String toString()
toString
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object