package aarddict;
import java.io.Serializable;
public final class Entry implements Serializable {
public String title;
public String section;
public long articlePointer;
public String volumeId;
public Entry(String volumeId, String title) {
this(volumeId, title, -1);
}
public Entry(String volumeId, String title,
long articlePointer) {
this.volumeId = volumeId;
this.title = title == null ? "" : title;
this.articlePointer = articlePointer;
}
@Override
return title;
}
@Override
final int prime = 31;
int result = 1;
result = prime * result
+ (int) (articlePointer ^ (articlePointer >>> 32));
result = prime * result + ((section == null) ? 0 : section.hashCode());
result = prime * result + ((title == null) ? 0 : title.hashCode());
result = prime * result
+ ((volumeId == null) ? 0 : volumeId.hashCode());
return result;
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (getClass() != obj.getClass())
return false;
Entry other = (Entry) obj;
if (articlePointer != other.articlePointer)
return false;
if (section == null) {
if (other.section != null)
return false;
} else if (!section.equals(other.section))
return false;
if (title == null) {
if (other.title != null)
return false;
} else if (!title.equals(other.title))
return false;
if (volumeId == null) {
if (other.volumeId != null)
return false;
} else if (!volumeId.equals(other.volumeId))
return false;
return true;
}
}