-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSerializableEmail.java
More file actions
34 lines (27 loc) · 856 Bytes
/
Copy pathSerializableEmail.java
File metadata and controls
34 lines (27 loc) · 856 Bytes
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
package New;
import java.io.Serializable;
public class SerializableEmail implements Serializable {
private static final long serialVersionUID = 1L; // Ensure version compatibility
private String emailAddress;
private String subject;
private String content;
private String sendDate;
public SerializableEmail(String emailAddress, String subject, String content, String sendDate) {
this.emailAddress = emailAddress;
this.subject = subject;
this.content = content;
this.sendDate = sendDate;
}
public String getEmailAddress() {
return emailAddress;
}
public String getSubject() {
return subject;
}
public String getContent() {
return content;
}
public String getSendDate() {
return sendDate;
}
}