java.security.cert.CertPath.hashCode()方法的使用及代码示例

x33g5p2x  于2022-01-18 转载在 其他  
字(6.6k)|赞(0)|评价(0)|浏览(133)

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

CertPath.hashCode介绍

[英]Overrides Object.hashCode(). The function is defined as follows:

hashCode = 31 * path.getType().hashCode() +

[中]覆盖对象。hashCode()。函数的定义如下:

hashCode = 31 * path.getType().hashCode() +

代码示例

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

/**
 * Returns the hash code value for this {@code Timestamp}. Returns the same
 * hash code for {@code Timestamp}s that are equal to each other as
 * required by the general contract of {@link Object#hashCode}.
 *
 * @return the hash code value for this {@code Timestamp}.
 * @see Object#equals(Object)
 * @see Timestamp#equals(Object)
 */
@Override
public int hashCode() {
  if (hash == 0) {
    hash = timestamp.hashCode() ^ signerCertPath.hashCode();
  }
  return hash;
}

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

/**
 * Returns the hash code value for this {@code CodeSigner}. Returns the same
 * hash code for {@code CodeSigner}s that are equal to each other as
 * required by the general contract of {@link Object#hashCode}.
 *
 * @return the hash code value for this {@code CodeSigner}.
 * @see Object#equals(Object)
 * @see CodeSigner#equals(Object)
 */
@Override
public int hashCode() {
  if (hash == 0) {
    hash = signerCertPath.hashCode()
        ^ (timestamp == null ? 0 : timestamp.hashCode());
  }
  return hash;
}

代码示例来源:origin: com.mobidevelop.robovm/robovm-rt

/**
 * Returns the hash code value for this {@code Timestamp}. Returns the same
 * hash code for {@code Timestamp}s that are equal to each other as
 * required by the general contract of {@link Object#hashCode}.
 *
 * @return the hash code value for this {@code Timestamp}.
 * @see Object#equals(Object)
 * @see Timestamp#equals(Object)
 */
@Override
public int hashCode() {
  if (hash == 0) {
    hash = timestamp.hashCode() ^ signerCertPath.hashCode();
  }
  return hash;
}

代码示例来源:origin: com.gluonhq/robovm-rt

/**
 * Returns the hash code value for this {@code Timestamp}. Returns the same
 * hash code for {@code Timestamp}s that are equal to each other as
 * required by the general contract of {@link Object#hashCode}.
 *
 * @return the hash code value for this {@code Timestamp}.
 * @see Object#equals(Object)
 * @see Timestamp#equals(Object)
 */
@Override
public int hashCode() {
  if (hash == 0) {
    hash = timestamp.hashCode() ^ signerCertPath.hashCode();
  }
  return hash;
}

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

/**
 * Returns the hash code value for this {@code Timestamp}. Returns the same
 * hash code for {@code Timestamp}s that are equal to each other as
 * required by the general contract of {@link Object#hashCode}.
 *
 * @return the hash code value for this {@code Timestamp}.
 * @see Object#equals(Object)
 * @see Timestamp#equals(Object)
 */
@Override
public int hashCode() {
  if (hash == 0) {
    hash = timestamp.hashCode() ^ signerCertPath.hashCode();
  }
  return hash;
}

代码示例来源:origin: ibinti/bugvm

/**
 * Returns the hash code value for this {@code Timestamp}. Returns the same
 * hash code for {@code Timestamp}s that are equal to each other as
 * required by the general contract of {@link Object#hashCode}.
 *
 * @return the hash code value for this {@code Timestamp}.
 * @see Object#equals(Object)
 * @see Timestamp#equals(Object)
 */
@Override
public int hashCode() {
  if (hash == 0) {
    hash = timestamp.hashCode() ^ signerCertPath.hashCode();
  }
  return hash;
}

代码示例来源:origin: FlexoVM/flexovm

/**
 * Returns the hash code value for this {@code Timestamp}. Returns the same
 * hash code for {@code Timestamp}s that are equal to each other as
 * required by the general contract of {@link Object#hashCode}.
 *
 * @return the hash code value for this {@code Timestamp}.
 * @see Object#equals(Object)
 * @see Timestamp#equals(Object)
 */
@Override
public int hashCode() {
  if (hash == 0) {
    hash = timestamp.hashCode() ^ signerCertPath.hashCode();
  }
  return hash;
}

代码示例来源:origin: com.bugvm/bugvm-rt

/**
 * Returns the hash code value for this {@code Timestamp}. Returns the same
 * hash code for {@code Timestamp}s that are equal to each other as
 * required by the general contract of {@link Object#hashCode}.
 *
 * @return the hash code value for this {@code Timestamp}.
 * @see Object#equals(Object)
 * @see Timestamp#equals(Object)
 */
@Override
public int hashCode() {
  if (hash == 0) {
    hash = timestamp.hashCode() ^ signerCertPath.hashCode();
  }
  return hash;
}

代码示例来源:origin: net.jxta/jxta-jxse

/**
 * {@inheritDoc}
 */
@Override
public int hashCode() {
  int result = peerID.hashCode() * source.group.getPeerGroupID().hashCode() * certs.hashCode();
  if (0 == result) {
    result = 1;
  }
  return result;
}

代码示例来源:origin: ibinti/bugvm

/**
 * Returns the hash code value for this {@code CodeSigner}. Returns the same
 * hash code for {@code CodeSigner}s that are equal to each other as
 * required by the general contract of {@link Object#hashCode}.
 *
 * @return the hash code value for this {@code CodeSigner}.
 * @see Object#equals(Object)
 * @see CodeSigner#equals(Object)
 */
@Override
public int hashCode() {
  if (hash == 0) {
    hash = signerCertPath.hashCode()
        ^ (timestamp == null ? 0 : timestamp.hashCode());
  }
  return hash;
}

代码示例来源:origin: com.bugvm/bugvm-rt

/**
 * Returns the hash code value for this {@code CodeSigner}. Returns the same
 * hash code for {@code CodeSigner}s that are equal to each other as
 * required by the general contract of {@link Object#hashCode}.
 *
 * @return the hash code value for this {@code CodeSigner}.
 * @see Object#equals(Object)
 * @see CodeSigner#equals(Object)
 */
@Override
public int hashCode() {
  if (hash == 0) {
    hash = signerCertPath.hashCode()
        ^ (timestamp == null ? 0 : timestamp.hashCode());
  }
  return hash;
}

代码示例来源:origin: FlexoVM/flexovm

/**
 * Returns the hash code value for this {@code CodeSigner}. Returns the same
 * hash code for {@code CodeSigner}s that are equal to each other as
 * required by the general contract of {@link Object#hashCode}.
 *
 * @return the hash code value for this {@code CodeSigner}.
 * @see Object#equals(Object)
 * @see CodeSigner#equals(Object)
 */
@Override
public int hashCode() {
  if (hash == 0) {
    hash = signerCertPath.hashCode()
        ^ (timestamp == null ? 0 : timestamp.hashCode());
  }
  return hash;
}

代码示例来源:origin: com.gluonhq/robovm-rt

/**
 * Returns the hash code value for this {@code CodeSigner}. Returns the same
 * hash code for {@code CodeSigner}s that are equal to each other as
 * required by the general contract of {@link Object#hashCode}.
 *
 * @return the hash code value for this {@code CodeSigner}.
 * @see Object#equals(Object)
 * @see CodeSigner#equals(Object)
 */
@Override
public int hashCode() {
  if (hash == 0) {
    hash = signerCertPath.hashCode()
        ^ (timestamp == null ? 0 : timestamp.hashCode());
  }
  return hash;
}

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

/**
 * Returns the hash code value for this {@code CodeSigner}. Returns the same
 * hash code for {@code CodeSigner}s that are equal to each other as
 * required by the general contract of {@link Object#hashCode}.
 *
 * @return the hash code value for this {@code CodeSigner}.
 * @see Object#equals(Object)
 * @see CodeSigner#equals(Object)
 */
@Override
public int hashCode() {
  if (hash == 0) {
    hash = signerCertPath.hashCode()
        ^ (timestamp == null ? 0 : timestamp.hashCode());
  }
  return hash;
}

代码示例来源:origin: com.mobidevelop.robovm/robovm-rt

/**
 * Returns the hash code value for this {@code CodeSigner}. Returns the same
 * hash code for {@code CodeSigner}s that are equal to each other as
 * required by the general contract of {@link Object#hashCode}.
 *
 * @return the hash code value for this {@code CodeSigner}.
 * @see Object#equals(Object)
 * @see CodeSigner#equals(Object)
 */
@Override
public int hashCode() {
  if (hash == 0) {
    hash = signerCertPath.hashCode()
        ^ (timestamp == null ? 0 : timestamp.hashCode());
  }
  return hash;
}

相关文章