-
Notifications
You must be signed in to change notification settings - Fork 0
/
File.java
57 lines (52 loc) · 1.08 KB
/
File.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
/**
* An object of the class File represents a single file.
*
* @author TGNU Team
* @version 1.0
*/
public class File
{
private String name;
private String content;
private int size;
/**
* Constructor for objects of class file
*
* @param String name The name of the file
* @param String content The content of the file
* @param int size The size of the file
*/
public File(String name, String content, int size)
{
this.name = name;
this.size = size;
this.content = content;
}
/**
* Get the name of the file
*
* @return name The name of the file
*/
public String getName()
{
return name;
}
/**
* Get the content of the file.
*
* @return content The content of the file
*/
public String getContent()
{
return content;
}
/**
* Get the size of the file.
*
* @return size The size of the file
*/
public int getSize()
{
return size;
}
}