From 04055548ac603af9e296aaccaa045371d820e784 Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Wed, 2 Jan 2013 18:53:39 +0100 Subject: [PATCH] Override toString(). --- .../java/net/pterodactylus/reactor/states/FileState.java | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/main/java/net/pterodactylus/reactor/states/FileState.java b/src/main/java/net/pterodactylus/reactor/states/FileState.java index b0c439e..b3bb70a 100644 --- a/src/main/java/net/pterodactylus/reactor/states/FileState.java +++ b/src/main/java/net/pterodactylus/reactor/states/FileState.java @@ -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()); + } + } -- 2.7.4