-
Notifications
You must be signed in to change notification settings - Fork 9
/
ObjectAttributeContent.java
45 lines (34 loc) · 1.13 KB
/
ObjectAttributeContent.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 ObjectAttributeContent extends BaseAttributeContent<Object> {
@Schema(description = "Object attribute content data", requiredMode = Schema.RequiredMode.REQUIRED)
private Object data;
public ObjectAttributeContent() {
}
public ObjectAttributeContent(Object data) {
this.data = data;
}
public ObjectAttributeContent(String reference, Object data) {
super(reference);
this.data = data;
}
public Object getData() {
return data;
}
public void setData(Object data) {
this.data = data;
}
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (!(o instanceof ObjectAttributeContent)) return false;
if (!super.equals(o)) return false;
ObjectAttributeContent that = (ObjectAttributeContent) o;
return Objects.equals(data, that.data);
}
@Override
public int hashCode() {
return Objects.hash(super.hashCode(), data);
}
}