-
Notifications
You must be signed in to change notification settings - Fork 9
/
StringAttributeContent.java
45 lines (34 loc) · 1.08 KB
/
StringAttributeContent.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
package com.czertainly.api.model.common.attribute.v2.content;
import io.swagger.v3.oas.annotations.media.Schema;
import java.util.Objects;
public class StringAttributeContent extends BaseAttributeContent<String> {
@Schema(description = "String attribute value", requiredMode = Schema.RequiredMode.REQUIRED)
private String data;
public StringAttributeContent() {
}
public StringAttributeContent(String data) {
super(data);
this.data = data;
}
public StringAttributeContent(String reference, String data) {
super(reference);
this.data = data;
}
public String getData() {
return data;
}
public void setData(String data) {
this.data = data;
}
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (!(o instanceof StringAttributeContent)) return false;
StringAttributeContent that = (StringAttributeContent) o;
return Objects.equals(data, that.data);
}
@Override
public int hashCode() {
return Objects.hash(data);
}
}