Skip to content

Instantly share code, notes, and snippets.

@gregorriegler
Created August 4, 2019 19:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gregorriegler/87fb60e8d49e82843ff2cdd23a8ee69b to your computer and use it in GitHub Desktop.
Save gregorriegler/87fb60e8d49e82843ff2cdd23a8ee69b to your computer and use it in GitHub Desktop.
intellij live templates
// log live template
private static final org.slf4j.Logger LOG = org.slf4j.LoggerFactory.getLogger($CLASS$.class);
// equals + hashcode live template
@Override
public boolean equals(Object other) {
return org.apache.commons.lang3.builder.EqualsBuilder.reflectionEquals(this, other);
}
@Override
public int hashCode() {
return org.apache.commons.lang3.builder.HashCodeBuilder.reflectionHashCode(this);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment