1 package charactermanaj.model;
\r
3 import java.io.Serializable;
\r
9 public class RecommendationURL implements Serializable, Cloneable {
\r
11 private static final long serialVersionUID = 3568122645473390201L;
\r
13 private String displayName;
\r
18 public RecommendationURL clone() {
\r
20 return (RecommendationURL) super.clone();
\r
22 } catch (CloneNotSupportedException ex) {
\r
23 throw new RuntimeException(ex);
\r
28 public int hashCode() {
\r
32 return url.hashCode();
\r
36 public boolean equals(Object obj) {
\r
40 if (obj != null && obj instanceof RecommendationURL) {
\r
41 RecommendationURL o = (RecommendationURL) obj;
\r
42 return (displayName == null ? (o.displayName == null) : displayName.equals(o.displayName))
\r
43 && (url == null ? (o.url == null) : url.equals(o.url));
\r
48 public String getDisplayName() {
\r
52 public void setDisplayName(String displayName) {
\r
53 this.displayName = displayName;
\r
56 public String getUrl() {
\r
60 public void setUrl(String url) {
\r
65 public String toString() {
\r
66 return "displayName=" + displayName + "/url=" + url;
\r