From: David ‘Bombe’ Roden Date: Wed, 2 Jan 2013 17:53:39 +0000 (+0100) Subject: Override toString(). X-Git-Tag: 0.1~103 X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=04055548ac603af9e296aaccaa045371d820e784;p=rhynodge.git Override toString(). --- 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()); + } + }