boolean (Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; CodeSnippet snippet = (CodeSnippet)o; if (!Objects.equals(myId, snippet.myId)) return false; if (myKind != snippet.myKind) return false; if (mySubKind != snippet.mySubKind) return false; if (!Objects.equals(myCodeText, snippet.myCodeText)) return false; if (!Objects.equals(myPresentation, snippet.myPresentation)) return false; return true; }