1 | public abstract class ItemImpl implements Item {↵ | | 1 | public static final class Component {↵
|
2 | private Long id;↵ | | 2 | private Calendar cal;↵
|
3 | private String name;↵ | | 3 | private Float floaty;↵
|
4 | /**↵ | | 4 | /**↵
|
5 | * @return Returns the id.↵ | | 5 | * Return↵
|
| | | 6 | s the cal.↵
|
| | | 7 | * @return Calendar↵
|
6 | */↵ | | 8 | */↵
|
7 | public Long getId() {↵ | | 9 | public Calendar getCal() {↵
|
8 | return id;↵ | | 10 | return cal;↵
|
9 | }↵ | | 11 | }↵
|
10 | /**↵ | | 12 | ↵
|
| | | 13 | ↵
|
| | | 14 | /**↵
|
| | | 15 | * Sets the cal.↵
|
11 | * @param id The id to set.↵ | | 16 | * @param cal The cal to set↵
|
12 | */↵ | | 17 | */↵
|
13 | public void setId(Long id) {↵ | | 18 | public void setCal(Calendar cal) {↵
|
14 | this.id = id;↵ | | 19 | this.cal = cal;↵
|
15 | }↵ | | 20 | }↵
|
16 | ↵ | | 21 | ↵
|
17 | /**↵ | | 22 | /**↵
|
18 | * @return Returns the name.↵ | | 23 | * Returns the ↵
|
| | | 24 | floaty.↵
|
| | | 25 | * @return Float↵
|
19 | */↵ | | 26 | */↵
|
20 | public String getName() {↵ | | 27 | public Float getFloaty() {↵
|
21 | return name;↵ | | 28 | return floaty;↵
|
22 | }↵ | | 29 | }↵
|
23 | /**↵ | | 30 | ↵
|
| | | 31 | ↵
|
| | | 32 | /**↵
|
| | | 33 | * Sets the floaty.↵
|
24 | * @param name The name to set.↵ | | 34 | * @param floaty The floaty to set↵
|
25 | */↵ | | 35 | */↵
|
26 | public void setName(String name) {↵ | | 36 | public void setFloaty(Float floaty) {↵
|
27 | this.name = name | | 37 | this.floaty = floaty
|