blob: 7a9f9ef5895a65c5596fbcaf06968b160ce48c27 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
|
package net.libertacasa.pubsh.web;
import java.io.Serializable;
import java.time.Instant;
import org.apache.commons.lang3.builder.ReflectionToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
public class MyContainer implements Serializable {
private static final long serialVersionUID = 5870179635916284739L;
@Override
public String toString() {
// return ReflectionToStringBuilder.toString(this,ToStringStyle.SHORT_PREFIX_STYLE);
return new ReflectionToStringBuilder(this,ToStringStyle.SHORT_PREFIX_STYLE).
append("name", name).
append("id", id).
append("ExpirationDate", ExpirationDate).
append("image", image).
append("imageid", imageid).
append("status", status).
toString();
}
private String name;
private String id;
private Instant ExpirationDate;
private String image;
private String imageid;
private String status;
public void setName(String name) {
this.name = name;
}
public void setId(String id) {
this.id = id;
}
public void setExpirationDate(Instant ExpirationDate) {
this.ExpirationDate = ExpirationDate;
}
public void setImage(String image) {
this.image = image;
}
public void setImageId(String imageid) {
this.imageid = imageid;
}
public void setStatus(String status) {
this.status = status;
}
public String getName() {
return name;
}
public String getId() {
return id;
}
public Instant getExpirationDate() {
return ExpirationDate;
}
public String getImage() {
return image;
}
public String getImageId() {
return imageid;
}
public String getStatus() {
return status;
}
}
|