/**
* @author ishaikh
*
*/
package com.transformuk.bdt.model;
import org.apache.commons.lang.StringUtils;
public class OtherSources {
String content;
String title;
String url;
String description;
Float score;
public String getContent() {
return content;
}
public void setContent(String content) {
this.content = content;
}
public String getTitle() {
return title;
}
public void setTitle(String title) {
this.title = title;
}
public String getUrl() {
return url;
}
public void setUrl(String url) {
this.url = url;
}
public String getDescription() {
return description;
}
public void setDescription(String description) {
this.description = description;
}
public Float getScore() {
return score;
}
public void setScore(Float score) {
this.score = score;
}
@Override
public boolean equals(Object object) {
boolean isEqual = false;
if (object != null && object instanceof OtherSources) {
if ( (StringUtils.isNotBlank(this.url)
&& (StringUtils.isNotBlank(((OtherSources) object).url)))) {
isEqual = (this.url.equalsIgnoreCase( ((OtherSources) object).url));
}
}
return isEqual;
}
@Override
public int hashCode() {
return super.hashCode();
}
}