projects
/
rhynodge.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
✨ Add movie descriptions to new movies section
[rhynodge.git]
/
src
/
main
/
java
/
net
/
pterodactylus
/
rhynodge
/
states
/
FileState.java
diff --git
a/src/main/java/net/pterodactylus/rhynodge/states/FileState.java
b/src/main/java/net/pterodactylus/rhynodge/states/FileState.java
index
3c2e999
..
983500d
100644
(file)
--- a/
src/main/java/net/pterodactylus/rhynodge/states/FileState.java
+++ b/
src/main/java/net/pterodactylus/rhynodge/states/FileState.java
@@
-17,6
+17,8
@@
package net.pterodactylus.rhynodge.states;
package net.pterodactylus.rhynodge.states;
+import javax.annotation.Nonnull;
+
import net.pterodactylus.rhynodge.State;
/**
import net.pterodactylus.rhynodge.State;
/**
@@
-77,6
+79,11
@@
public class FileState extends AbstractState {
// ACCESSORS
//
// ACCESSORS
//
+ @Override
+ public boolean isEmpty() {
+ return !exists;
+ }
+
/**
* Returns whether the file exists.
*
/**
* Returns whether the file exists.
*
@@
-114,6
+121,12
@@
public class FileState extends AbstractState {
return modificationTime;
}
return modificationTime;
}
+ @Nonnull
+ @Override
+ protected String plainText() {
+ return toString();
+ }
+
//
// OBJECT METHODS
//
//
// OBJECT METHODS
//