Created
August 24, 2012 22:06
-
-
Save electrum/3456269 to your computer and use it in GitHub Desktop.
Guava Objects.toStringHelper template for IntelliJ IDEA
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public String toString() { | |
#set ($autoImportPackages = "com.google.common.base.Objects") | |
return Objects.toStringHelper(this) | |
#foreach ($member in $members) | |
.add("$member.name", $member.accessor) | |
#end | |
.toString(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment