示例#1
0
 @Override
 public int hashCode() {
   int result = super.hashCode();
   result = 31 * result + (lsn != null ? lsn.hashCode() : 0);
   result = 31 * result + (int) (pageIndex ^ (pageIndex >>> 32));
   result = 31 * result + (int) (fileId ^ (fileId >>> 32));
   return result;
 }
示例#2
0
  @Override
  public boolean equals(Object o) {
    if (this == o) return true;
    if (o == null || getClass() != o.getClass()) return false;
    if (!super.equals(o)) return false;

    OAbstractPageWALRecord that = (OAbstractPageWALRecord) o;

    if (fileId != that.fileId) return false;
    if (pageIndex != that.pageIndex) return false;
    if (lsn != null ? !lsn.equals(that.lsn) : that.lsn != null) return false;

    return true;
  }