Skip to content

Instantly share code, notes, and snippets.

@itzg
Created October 21, 2012 19:09
Show Gist options
  • Save itzg/3928120 to your computer and use it in GitHub Desktop.
Save itzg/3928120 to your computer and use it in GitHub Desktop.
toString template to use in Eclipse
@Override
public String toString() {
StringBuilder sb = new StringBuilder(${enclosing_type}.class.getSimpleName());
sb.append(":[");
sb.append("${field}=").append(${field});
sb.append(",").append(",super=").append(super.toString()).append("]");
return sb.toString();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment