You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
39 lines
975 B
39 lines
975 B
package com.bupt.note.Model;
|
|
|
|
import java.io.Serializable;
|
|
import java.util.Objects;
|
|
|
|
public class SimilarityId implements Serializable {
|
|
private Long sourcePaper;
|
|
private Long targetPaper;
|
|
|
|
public Long getSourcePaper() {
|
|
return sourcePaper;
|
|
}
|
|
|
|
public void setSourcePaper(Long sourcePaper) {
|
|
this.sourcePaper = sourcePaper;
|
|
}
|
|
|
|
public Long getTargetPaper() {
|
|
return targetPaper;
|
|
}
|
|
|
|
public void setTargetPaper(Long targetPaper) {
|
|
this.targetPaper = targetPaper;
|
|
}
|
|
|
|
@Override
|
|
public boolean equals(Object o) {
|
|
if (this == o) return true;
|
|
if (o == null || getClass() != o.getClass()) return false;
|
|
SimilarityId that = (SimilarityId) o;
|
|
return Objects.equals(sourcePaper, that.sourcePaper) &&
|
|
Objects.equals(targetPaper, that.targetPaper);
|
|
}
|
|
|
|
@Override
|
|
public int hashCode() {
|
|
return Objects.hash(sourcePaper, targetPaper);
|
|
}
|
|
}
|
|
|