Skip to content

Instantly share code, notes, and snippets.

@martenlienen
Created December 16, 2012 10:43
Show Gist options
  • Save martenlienen/4306243 to your computer and use it in GitHub Desktop.
Save martenlienen/4306243 to your computer and use it in GitHub Desktop.
class Style {
private boolean bold;
private boolean italic;
public boolean equals (Object other) {
if (other == null || !(other instanceof Style)) {
return false;
}
Style style = (Style)other;
return bold == style.bold && italic == style.italic;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment