Added model class
This commit is contained in:
parent
47257183b1
commit
b741e4e648
|
@ -0,0 +1,32 @@
|
|||
package com.baeldung.reactive.model;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
|
||||
public class Stock {
|
||||
|
||||
private String code;
|
||||
|
||||
private BigDecimal price;
|
||||
|
||||
public Stock(String code, BigDecimal price) {
|
||||
this.code = code;
|
||||
this.price = price;
|
||||
}
|
||||
|
||||
public String getCode() {
|
||||
return code;
|
||||
}
|
||||
|
||||
public void setCode(String code) {
|
||||
this.code = code;
|
||||
}
|
||||
|
||||
public BigDecimal getPrice() {
|
||||
return price;
|
||||
}
|
||||
|
||||
public void setPrice(BigDecimal price) {
|
||||
this.price = price;
|
||||
}
|
||||
|
||||
}
|
Loading…
Reference in New Issue