/** * @return the hash code of this polynomial */ public int hashCode() { int hash = field.hashCode(); for (int j = 0; j < coefficients.length; j++) { hash = hash * 31 + coefficients[j]; } return hash; }
public int hashCode() { int hash = (this.field.hashCode() * 31 + numRows) * 31 + numColumns; for (int i = 0; i < this.numRows; i++) { for (int j = 0; j < this.numColumns; j++) { hash = hash * 31 + matrix[i][j]; } } return hash; }
public int hashCode() { int hash = (this.field.hashCode() * 31 + numRows) * 31 + numColumns; for (int i = 0; i < this.numRows; i++) { for (int j = 0; j < this.numColumns; j++) { hash = hash * 31 + matrix[i][j]; } } return hash; }
/** * @return the hash code of this polynomial */ public int hashCode() { int hash = field.hashCode(); for (int j = 0; j < coefficients.length; j++) { hash = hash * 31 + coefficients[j]; } return hash; }
@Override public int hashCode() { int hash = (this.field.hashCode() * 31 + numRows) * 31 + numColumns; for (int i = 0; i < this.numRows; i++) { for (int j = 0; j < this.numColumns; j++) { hash = hash * 31 + matrix[i][j]; } } return hash; }
/** * @return the hash code of this vector */ public int hashCode() { int hash = this.field.hashCode(); hash = hash * 31 + vector.hashCode(); return hash; }
/** * @return the hash code of this vector */ public int hashCode() { int hash = this.field.hashCode(); hash = hash * 31 + Arrays.hashCode(vector); return hash; }
/** * @return the hash code of this key */ public int hashCode() { int code = params.getK(); code = code * 37 + params.getN(); code = code * 37 + params.getField().hashCode(); code = code * 37 + params.getGoppaPoly().hashCode(); code = code * 37 + params.getP().hashCode(); return code * 37 + params.getH().hashCode(); }
/** * @return the hash code of this key */ public int hashCode() { int code = params.getK(); code = code * 37 + params.getN(); code = code * 37 + params.getField().hashCode(); code = code * 37 + params.getGoppaPoly().hashCode(); code = code * 37 + params.getP1().hashCode(); code = code * 37 + params.getP2().hashCode(); return code * 37 + params.getSInv().hashCode(); }