Override toString().
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Wed, 2 Jan 2013 17:53:39 +0000 (18:53 +0100)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Wed, 2 Jan 2013 20:14:41 +0000 (21:14 +0100)
src/main/java/net/pterodactylus/reactor/states/FileState.java

index b0c439e..b3bb70a 100644 (file)
@@ -114,4 +114,16 @@ public class FileState extends AbstractState {
                return modificationTime;
        }
 
+       //
+       // OBJECT METHODS
+       //
+
+       /**
+        * {@inheritDoc}
+        */
+       @Override
+       public String toString() {
+               return String.format("%s[exists=%s,readable=%s,size=%s,modificationTime=%d(%5$tc)", getClass().getSimpleName(), exists(), readable(), size(), modificationTime());
+       }
+
 }