-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathTweet.java
58 lines (40 loc) · 947 Bytes
/
Tweet.java
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
package Utils;
import java.io.Serializable;
public class Tweet implements Serializable{
private String text, sentiment, country, language;
public Tweet() {
text = "T Undefined";
sentiment = "S Undefined";
country = "C Undefined";
language = "L Undefined";
}
public String getText() {
return text;
}
public void setText(String text) {
this.text = text;
}
public String getSentiment() {
return sentiment;
}
public void setSentiment(String sentiment) {
this.sentiment = sentiment;
}
public String getCountry() {
return country;
}
public void setCountry(String country) {
this.country = country;
}
public String getLanguage() {
return language;
}
public void setLanguage(String language) {
this.language = language;
}
@Override
public String toString() {
return "Tweet [text=" + text + ", sentiment=" + sentiment
+ ", country=" + country + ", language=" + language + "]";
}
}