1 | public class Stock {↵ | | 1 | public class Alien {↵
|
2 | private Long id;↵ | | 2 | private Long id;↵
|
3 | private String tradeSymbol;↵ | | 3 | private String ↵
|
4 | private Valuation currentValuation;↵ | | |
|
5 | private Set valuations = new HashSet();↵ | | |
|
|
6 | public Long getId() {↵ | | |
|
7 | return id↵ | | 4 | identity;↵
|
| | | 5 | private String planet;↵
|
8 | ;↵ | | 6 | private String species;↵
|
9 | }↵ | | 7 | ↵
|
|
10 | public void setId(Long id) {↵ | | 8 | public void setId↵
|
11 | this.id = id↵ | | 9 | entity(String identity) {↵
|
12 | ;↵ | | 10 | this.identity = identity;↵
|
13 | }↵ | | 11 | }↵
|
|
14 | public String getTradeSymbol() {↵ | | 12 | public String getIdentity() {↵
|
15 | return tradeSymbol;↵ | | 13 | return identity;↵
|
16 | }↵ | | 14 | }↵
|
|
17 | public void setTradeSymbol(String tradeSymbol) {↵ | | 15 | public void set↵
|
18 | this.tradeSymbol = tradeSymbol↵ | | 16 | Species(String species) {↵
|
19 | ;↵ | | 17 | this.species = species;↵
|
20 | }↵ | | 18 | }↵
|
|
21 | public Valuation getCurrentValuation() {↵ | | 19 | public ↵
|
22 | return currentValuation↵ | | 20 | String getSpecies() {↵
|
23 | ;↵ | | 21 | return species;↵
|
24 | }↵ | | 22 | }↵
|
|
25 | public void setCurrentValuation(Valuation currentValuation) {↵ | | 23 | public void set↵
|
26 | this.currentValuation = currentValuation↵ | | 24 | Planet(String planet) {↵
|
27 | ;↵ | | 25 | this.planet = planet;↵
|
28 | }↵ | | 26 | }↵
|
|
29 | public Set getValuations() {↵ | | 27 | public String getPlanet() {↵
|
30 | return valuations;↵ | | 28 | return planet;↵
|
31 | }↵ | | 29 | }↵
|
|
32 | public void setValuations(Set valuations) {↵ | | 30 | public void set↵
|
33 | this.valuations = valuations | | 31 | Id(Long id) {↵
|
| | | 32 | this.id = id;↵
|
| | | 33 | }↵
|
| | | 34 | public Long getId() {↵
|
| | | 35 | return id
|