package com.google.step.snippet.data;

public final class Card {
  private String title;
  private String code;
  private String link;
  private String description;

  public Card(String title, String code, String link, String description) {
    this.title = title;
    this.code = code;
    this.link = link;
    this.description = description;
  }

  public String getTitle() {
    return title;
  }

  public String getCode() {
    return code;
  }

  public String getLink() {
    return link;
  }

  public String getDescription() {
    return description;
  }

  @Override
  public boolean equals(Object obj) {
    if (obj == null) {
      return false;
    }
    if (!Card.class.isAssignableFrom(obj.getClass())) {
      return false;
    }
    final Card other = (Card) obj;
    if (!this.title.equals(other.title)) {
      return false;
    }
    if (!this.code.equals(other.code)) {
      return false;
    }
    if (!this.link.equals(other.link)) {
      return false;
    }
    if (!this.description.equals(other.description)) {
      return false;
    }
    return true;
  }
}

@@ -606,24 +606,72 @@
 ject obj) %7B%0A
+    if (this == obj) %7B%0A      return true;%0A    %7D%0A
     if (obj 
@@ -677,24 +677,24 @@
  == null) %7B%0A
-
       return
@@ -824,25 +824,28 @@
 d) obj;%0A
+%0A
     
-if (!
+return 
 this.tit
@@ -870,47 +870,20 @@
 tle)
-) %7B
 %0A      
-return false;%0A    %7D%0A    if (!
+  && 
 this
@@ -910,47 +910,20 @@
 ode)
-) %7B
 %0A      
-return false;%0A    %7D%0A    if (!
+  && 
 this
@@ -950,47 +950,20 @@
 ink)
-) %7B
 %0A      
-return false;%0A    %7D%0A    if (!
+  && 
 this
@@ -1004,53 +1004,8 @@
 ion)
-) %7B%0A      return false;%0A    %7D%0A    return true
 ;%0A  

Clean up equals method