Skip to content

Commit 2f37d7d

Browse files
tobiasKaminskyAlvaroBrey
authored andcommitted
De-lombok
Signed-off-by: tobiasKaminsky <[email protected]>
1 parent 7851deb commit 2f37d7d

File tree

1 file changed

+38
-8
lines changed
  • library/src/main/java/com/owncloud/android/lib/resources/files/model

1 file changed

+38
-8
lines changed

library/src/main/java/com/owncloud/android/lib/resources/files/model/FileVersion.java

Lines changed: 38 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,6 @@
3232

3333
import com.owncloud.android.lib.common.network.WebdavEntry;
3434

35-
import lombok.Getter;
36-
import lombok.Setter;
37-
38-
3935
/**
4036
* Contains the data of a versioned file from a WebDavEntry.
4137
*/
@@ -48,10 +44,10 @@ public class FileVersion implements Parcelable, ServerFileInterface {
4844

4945
public static final String DIRECTORY = "DIR";
5046

51-
@Getter @Setter private String mimeType;
52-
@Getter @Setter private long fileLength;
53-
@Getter @Setter private long modifiedTimestamp;
54-
@Getter private long localId;
47+
private String mimeType;
48+
private long fileLength;
49+
private long modifiedTimestamp;
50+
private long localId;
5551

5652
@Override
5753
public boolean isFavorite() {
@@ -63,11 +59,24 @@ public String getFileName() {
6359
return String.valueOf(modifiedTimestamp / 1000);
6460
}
6561

62+
@Override
63+
public String getMimeType() {
64+
return mimeType;
65+
}
66+
6667
@Override
6768
public String getRemotePath() {
6869
return "";
6970
}
7071

72+
/**
73+
* For file version this is the same as remoteId
74+
*/
75+
@Override
76+
public long getLocalId() {
77+
return localId;
78+
}
79+
7180
/**
7281
* For file version this is the same as remoteId
7382
*/
@@ -80,6 +89,27 @@ public boolean isFolder() {
8089
return DIRECTORY.equals(mimeType);
8190
}
8291

92+
@Override
93+
public long getFileLength() {
94+
return 0;
95+
}
96+
97+
public void setMimeType(String mimeType) {
98+
this.mimeType = mimeType;
99+
}
100+
101+
public void setFileLength(long fileLength) {
102+
this.fileLength = fileLength;
103+
}
104+
105+
public long getModifiedTimestamp() {
106+
return modifiedTimestamp;
107+
}
108+
109+
public void setModifiedTimestamp(long modifiedTimestamp) {
110+
this.modifiedTimestamp = modifiedTimestamp;
111+
}
112+
83113
public boolean isHidden() {
84114
return getFileName().startsWith(".");
85115
}

0 commit comments

Comments
 (0)