本文整理汇总了Java中org.bouncycastle.util.Arrays.hashCode方法的典型用法代码示例。如果您正苦于以下问题:Java Arrays.hashCode方法的具体用法?Java Arrays.hashCode怎么用?Java Arrays.hashCode使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.bouncycastle.util.Arrays
的用法示例。
在下文中一共展示了Arrays.hashCode方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: hashCode
import org.bouncycastle.util.Arrays; //导入方法依赖的package包/类
public int hashCode()
{
int code = Arrays.hashCode(subjectKeyId);
if (this.serialNumber != null)
{
code ^= this.serialNumber.hashCode();
}
if (this.issuer != null)
{
code ^= this.issuer.hashCode();
}
return code;
}
示例2: hashCollection
import org.bouncycastle.util.Arrays; //导入方法依赖的package包/类
private int hashCollection(Collection coll)
{
if (coll == null)
{
return 0;
}
int hash = 0;
Iterator it1 = coll.iterator();
while (it1.hasNext())
{
Object o = it1.next();
if (o instanceof byte[])
{
hash += Arrays.hashCode((byte[])o);
}
else
{
hash += o.hashCode();
}
}
return hash;
}
示例3: hashCode
import org.bouncycastle.util.Arrays; //导入方法依赖的package包/类
public int hashCode()
{
try
{
return Arrays.hashCode(this.getEncoded());
}
catch (IOException e)
{
return 0;
}
}
示例4: hashCode
import org.bouncycastle.util.Arrays; //导入方法依赖的package包/类
public int hashCode()
{
final int prime = 31;
int result = 1;
result = prime * result + Arrays.hashCode(coeffs);
return result;
}
示例5: hashCode
import org.bouncycastle.util.Arrays; //导入方法依赖的package包/类
public int hashCode()
{
int hash = vi;
hash = hash * 37 + viNext;
hash = hash * 37 + oi;
hash = hash * 37 + Arrays.hashCode(coeff_alpha);
hash = hash * 37 + Arrays.hashCode(coeff_beta);
hash = hash * 37 + Arrays.hashCode(coeff_gamma);
hash = hash * 37 + Arrays.hashCode(coeff_eta);
return hash;
}
示例6: hashCode
import org.bouncycastle.util.Arrays; //导入方法依赖的package包/类
public int hashCode()
{
return counter ^ Arrays.hashCode(seed);
}
示例7: hashCode
import org.bouncycastle.util.Arrays; //导入方法依赖的package包/类
public int hashCode()
{
return Arrays.hashCode(keyIdentifier);
}
示例8: hashCode
import org.bouncycastle.util.Arrays; //导入方法依赖的package包/类
public int hashCode()
{
return (isConstructed ? ~0 : 0) ^ tag ^ Arrays.hashCode(data);
}
示例9: hashCode
import org.bouncycastle.util.Arrays; //导入方法依赖的package包/类
public int hashCode()
{
return (isConstructed ? 1 : 0) ^ tag ^ Arrays.hashCode(octets);
}
示例10: hashCode
import org.bouncycastle.util.Arrays; //导入方法依赖的package包/类
public int hashCode()
{
return Arrays.hashCode(string);
}
示例11: hashCode
import org.bouncycastle.util.Arrays; //导入方法依赖的package包/类
public int hashCode()
{
return Arrays.hashCode(time);
}
示例12: hashCode
import org.bouncycastle.util.Arrays; //导入方法依赖的package包/类
public int hashCode()
{
return padBits ^ Arrays.hashCode(data);
}
示例13: hashCode
import org.bouncycastle.util.Arrays; //导入方法依赖的package包/类
public int hashCode()
{
return Arrays.hashCode(bytes);
}
示例14: hashCode
import org.bouncycastle.util.Arrays; //导入方法依赖的package包/类
public int hashCode()
{
return Arrays.hashCode(string);
}
示例15: hashCode
import org.bouncycastle.util.Arrays; //导入方法依赖的package包/类
public int hashCode()
{
return Arrays.hashCode(id);
}