boolean (Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; DocCommandGroupId that = (DocCommandGroupId)o; if (!myDocument.equals(that.myDocument)) return false; if (!myGroupId.equals(that.myGroupId)) return false; return true; }