-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathFileData.java
More file actions
44 lines (35 loc) · 803 Bytes
/
FileData.java
File metadata and controls
44 lines (35 loc) · 803 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
35
36
37
38
39
40
41
42
43
44
package Task_4;
import java.util.UUID;
public class FileData {
private String type;
private int size;
private UUID uuid;
public FileData(String type, int size) {
this.type = type;
this.size = size;
this.uuid = UUID.randomUUID();
}
public String getType() {
return type;
}
public void setType(String type) {
this.type = type;
}
public int getSize() {
return size;
}
public void setSize(int size) {
this.size = size;
}
public UUID getUuid() {
return uuid;
}
@Override
public String toString() {
return "FileData{" +
"type='" + type + '\'' +
", size=" + size +
", uuid=" + uuid +
'}';
}
}