java.math.BigInteger.hashCode()方法的使用及代码示例

x33g5p2x  于2022-01-16 转载在 其他  
字(3.1k)|赞(0)|评价(0)|浏览(195)

本文整理了Java中java.math.BigInteger.hashCode()方法的一些代码示例,展示了BigInteger.hashCode()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。BigInteger.hashCode()方法的具体详情如下:
包路径:java.math.BigInteger
类名称:BigInteger
方法名:hashCode

BigInteger.hashCode介绍

[英]Cache for the hash code.
[中]哈希代码的缓存。

代码示例

代码示例来源:origin: prestodb/presto

@Override
  public int hashCode() {
    return _value.hashCode();
  }
}

代码示例来源:origin: redisson/redisson

@Override
  public int hashCode() {
    return _value.hashCode();
  }
}

代码示例来源:origin: clojure/clojure

public int hashCode(){
  return numerator.hashCode() ^ denominator.hashCode();
}

代码示例来源:origin: apache/storm

@Override
public int hashCode() {
  return _txid.hashCode();
}

代码示例来源:origin: hibernate/hibernate-orm

@Override
  public int hashCode() {
    return value != null ? value.hashCode() : 0;
  }
}

代码示例来源:origin: alibaba/jstorm

@Override
public int hashCode() {
  return _txid.hashCode();
}

代码示例来源:origin: org.codehaus.jackson/jackson-mapper-asl

@Override
  public int hashCode() {
    return _value.hashCode();
  }
}

代码示例来源:origin: MovingBlocks/Terasology

@Override
public int hashCode() {
  return signature.hashCode();
}

代码示例来源:origin: web3j/web3j

@Override
  public int hashCode() {
    int result = privateKey != null ? privateKey.hashCode() : 0;
    result = 31 * result + (publicKey != null ? publicKey.hashCode() : 0);
    return result;
  }
}

代码示例来源:origin: ethereum/ethereumj

@Override
  public int hashCode() {
    int result = r.hashCode();
    result = 31 * result + s.hashCode();
    return result;
  }
}

代码示例来源:origin: org.apache.ant/ant

/**
 * Override to make two instances with same value equal.
 * @return the hashCode of the value stored in the ZipEightByteInteger
 */
@Override
public int hashCode() {
  return value.hashCode();
}

代码示例来源:origin: wildfly/wildfly

public int hashCode() {
    return modulus.hashCode();
  }
}

代码示例来源:origin: robovm/robovm

/**
   * Returns the hashcode value for this finite field.
   *
   * @return the hashcode value for this finite field.
   */
  public int hashCode() {
    return rp == null ? m : m + rp.hashCode();
  }
}

代码示例来源:origin: robovm/robovm

/**
   * Returns the hashcode value for this finite field.
   *
   * @return the hashcode value for this finite field.
   */
  public int hashCode() {
    return p.hashCode();
  }
}

代码示例来源:origin: MovingBlocks/Terasology

@Override
  public int hashCode() {
    return Objects.hash(modulus.hashCode(), exponent.hashCode());
  }
}

代码示例来源:origin: web3j/web3j

@Override
  public int hashCode() {
    int result = type.hashCode();
    result = 31 * result + (value != null ? value.hashCode() : 0);
    return result;
  }
}

代码示例来源:origin: apache/ignite

/** {@inheritDoc} */
  @Override public int hashCode() {
    int result = id.hashCode();
    result = 31 * result + name.hashCode();
    return result;
  }
}

代码示例来源:origin: web3j/web3j

@Override
public int hashCode() {
  int result = getData() != null ? getData().hashCode() : 0;
  result = 31 * result + (getOff() != null ? getOff().hashCode() : 0);
  return result;
}

代码示例来源:origin: web3j/web3j

@Override
public int hashCode() {
  int result = getSub() != null ? getSub().hashCode() : 0;
  result = 31 * result + (getCost() != null ? getCost().hashCode() : 0);
  result = 31 * result + (getEx() != null ? getEx().hashCode() : 0);
  result = 31 * result + (getPc() != null ? getPc().hashCode() : 0);
  return result;
}

代码示例来源:origin: web3j/web3j

@Override
public int hashCode() {
  int result = getMem() != null ? getMem().hashCode() : 0;
  result = 31 * result + (getPush() != null ? getPush().hashCode() : 0);
  result = 31 * result + (getStore() != null ? getStore().hashCode() : 0);
  result = 31 * result + (getUsed() != null ? getUsed().hashCode() : 0);
  return result;
}

相关文章