Skip to content

Commit c0852bf

Browse files
Added model class
1 parent 4725718 commit c0852bf

1 file changed

Lines changed: 32 additions & 0 deletions

File tree

  • spring-5-reactive/src/main/java/com/baeldung/reactive/model
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
package com.baeldung.reactive.model;
2+
3+
import java.math.BigDecimal;
4+
5+
public class Stock {
6+
7+
private String code;
8+
9+
private BigDecimal price;
10+
11+
public Stock(String code, BigDecimal price) {
12+
this.code = code;
13+
this.price = price;
14+
}
15+
16+
public String getCode() {
17+
return code;
18+
}
19+
20+
public void setCode(String code) {
21+
this.code = code;
22+
}
23+
24+
public BigDecimal getPrice() {
25+
return price;
26+
}
27+
28+
public void setPrice(BigDecimal price) {
29+
this.price = price;
30+
}
31+
32+
}

0 commit comments

Comments
 (0)