public class DirectoryItem extends Object
Modifier and Type | Field and Description |
---|---|
private long |
fileCode |
private String |
license |
private String |
name |
private String |
photo |
private String |
publisher |
private long |
size |
private long |
time |
private String |
type |
Constructor and Description |
---|
DirectoryItem(String name)
Constructor of a directory type.
|
DirectoryItem(String name,
String type,
long fileCode,
long size,
long time,
String license,
String publisher,
String photo)
Constructor of a File item.
|
Modifier and Type | Method and Description |
---|---|
long |
getFileCode() |
String |
getLicense() |
String |
getName() |
String |
getPhoto() |
String |
getPublisher() |
long |
getSize() |
long |
getTime() |
String |
getType() |
boolean |
isFolder()
Check if the item is a folder.
|
void |
setFileCode(long fileCode) |
void |
setLicense(String license) |
void |
setName(String name) |
void |
setPhoto(String photo) |
void |
setPublisher(String publisher) |
void |
setSize(int size) |
void |
setTime(long time) |
void |
setType(String type) |
private String name
private String type
private long fileCode
private long size
private long time
private String license
private String publisher
private String photo
DirectoryItem(String name)
name
- public boolean isFolder()
public void setName(String name)
public void setFileCode(long fileCode)
public void setType(String type)
public void setSize(int size)
public void setTime(long time)
public void setLicense(String license)
public void setPublisher(String publisher)
public void setPhoto(String photo)
public String getName()
public String getType()
public long getFileCode()
public long getSize()
public long getTime()
public String getLicense()
public String getPublisher()
public String getPhoto()