当前位置: 首页>>代码示例>>Java>>正文


Java Arrays.hashCode方法代码示例

本文整理汇总了Java中java.util.Arrays.hashCode方法的典型用法代码示例。如果您正苦于以下问题:Java Arrays.hashCode方法的具体用法?Java Arrays.hashCode怎么用?Java Arrays.hashCode使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在java.util.Arrays的用法示例。


在下文中一共展示了Arrays.hashCode方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: hashCode

import java.util.Arrays; //导入方法依赖的package包/类
@Override public int hashCode() {
    int result = 17;
    result = 37 * result + pvno;
    result = 37 * result + msgType;
    if (cTime != null) result = 37 * result + cTime.hashCode();
    if (cuSec != null) result = 37 * result + cuSec.hashCode();
    if (sTime != null) result = 37 * result + sTime.hashCode();
    if (suSec != null) result = 37 * result + suSec.hashCode();
    result = 37 * result + errorCode;
    if (cname != null) result = 37 * result + cname.hashCode();
    if (sname != null) result = 37 * result + sname.hashCode();
    if (eText != null) result = 37 * result + eText.hashCode();
    result = 37 * result + Arrays.hashCode(eData);
    if (eCksum != null) result = 37 * result + eCksum.hashCode();
    return result;
}
 
开发者ID:lambdalab-mirror,项目名称:jdk8u-jdk,代码行数:17,代码来源:KRBError.java

示例2: hashCode

import java.util.Arrays; //导入方法依赖的package包/类
@Override
public int hashCode() {
    int hash = this.hash;

    if (hash == 0) {
        this.hash = hash = Arrays.hashCode(bytes);
    }

    return hash;
}
 
开发者ID:hekate-io,项目名称:hekate,代码行数:11,代码来源:DefaultClusterHash.java

示例3: hashCode

import java.util.Arrays; //导入方法依赖的package包/类
@Override
public int hashCode() {
  int result = 1;
  result = 37 * result + title.hashCode();
  result = 37 * result + description.hashCode();
  result = 37 * result + Arrays.hashCode(photo);
  result = 37 * result + Objects.hashCode(text);
  result = 37 * result + Arrays.hashCode(textEntities);
  result = 37 * result + animation.hashCode();
  return result;
}
 
开发者ID:AgeOfWar,项目名称:Telejam,代码行数:12,代码来源:Game.java

示例4: hashCode

import java.util.Arrays; //导入方法依赖的package包/类
public int hashCode()
{
    int i = super.hashCode();
    i = 31 * i + this.key.hashCode();
    i = 31 * i + Arrays.hashCode(this.formatArgs);
    return i;
}
 
开发者ID:sudofox,项目名称:Backmemed,代码行数:8,代码来源:TextComponentTranslation.java

示例5: hashCode

import java.util.Arrays; //导入方法依赖的package包/类
@Override
public int hashCode() {
    final int prime = 31;
    int result = 1;
    result = prime * result + Arrays.hashCode(m_betweenClassDistances);
    result = prime * result
            + ((m_kernel == null) ? 0 : m_kernel.hashCode());
    result = prime * result
            + ((m_projection == null) ? 0 : m_projection.hashCode());
    result = prime * result
            + ((m_targetPoints == null) ? 0 : m_targetPoints.hashCode());
    return result;
}
 
开发者ID:knime,项目名称:knime-activelearning,代码行数:14,代码来源:KNFST.java

示例6: hashCode

import java.util.Arrays; //导入方法依赖的package包/类
@Override
public int hashCode() {
    final int prime = 31;
    int result = super.hashCode();
    result = prime * result + Arrays.hashCode(m_labels);
    return result;
}
 
开发者ID:knime,项目名称:knime-activelearning,代码行数:8,代码来源:MultiClassKNFST.java

示例7: hashCode

import java.util.Arrays; //导入方法依赖的package包/类
@Override
public int hashCode() {
	final int prime = 31;
	int result = 1;
	result = prime * result + Arrays.hashCode(children);
	result = prime * result + ((label == null) ? 0 : label.hashCode());
	return result;
}
 
开发者ID:eclipse,项目名称:n4js,代码行数:9,代码来源:NamedNode.java

示例8: hashCode

import java.util.Arrays; //导入方法依赖的package包/类
@Override
public int hashCode() {
  if (hashCode == 0) {
    int result = uuid.hashCode();
    result = 31 * result + mimeType.hashCode();
    result = 31 * result + Arrays.hashCode(data);
    hashCode = result;
  }
  return hashCode;
}
 
开发者ID:sanjaysingh1990,项目名称:Exoplayer2Radio,代码行数:11,代码来源:DrmInitData.java

示例9: hashCode

import java.util.Arrays; //导入方法依赖的package包/类
public int hashCode() {
	int h = this.cellCount;
	h = 31 * h + this.layerCount;
	h = 31 * h + Arrays.hashCode(this.xCoordinates);
	h = 31 * h + Arrays.hashCode(this.yCoordinates);
	h = 31 * h + Arrays.hashCode(this.zCoordinates);

	return h;
}
 
开发者ID:OpenDA-Association,项目名称:OpenDA,代码行数:10,代码来源:LayeredIrregularGridGeometryInfo.java

示例10: hashCode

import java.util.Arrays; //导入方法依赖的package包/类
@Override
public int hashCode() {
    final int prime = 31;
    int result = 1;
    result = prime * result + age;
    result = prime * result + ((name == null) ? 0 : name.hashCode());
    result = prime * result + Arrays.hashCode(value);
    return result;
}
 
开发者ID:yunhaibin,项目名称:dubbox-hystrix,代码行数:10,代码来源:Person.java

示例11: ComponentKey

import java.util.Arrays; //导入方法依赖的package包/类
public ComponentKey(ComponentName componentName, UserHandleCompat user) {
    Preconditions.assertNotNull(componentName);
    Preconditions.assertNotNull(user);
    this.componentName = componentName;
    this.user = user;
    mHashCode = Arrays.hashCode(new Object[] {componentName, user});

}
 
开发者ID:michelelacorte,项目名称:FlickLauncher,代码行数:9,代码来源:ComponentKey.java

示例12: hashCode

import java.util.Arrays; //导入方法依赖的package包/类
@Override
public int hashCode() {
    Type [] lowerBounds = getLowerBounds();
    Type [] upperBounds = getUpperBounds();

    return Arrays.hashCode(lowerBounds) ^ Arrays.hashCode(upperBounds);
}
 
开发者ID:AdoptOpenJDK,项目名称:openjdk-jdk10,代码行数:8,代码来源:WildcardTypeImpl.java

示例13: hashCode

import java.util.Arrays; //导入方法依赖的package包/类
@Override
public int hashCode() {
    if (hash == 0 && registers.length > 0) {
        hash = Arrays.hashCode(registers);
    }
    return hash;
}
 
开发者ID:AdoptOpenJDK,项目名称:openjdk-jdk10,代码行数:8,代码来源:RegisterArray.java

示例14: hashCode

import java.util.Arrays; //导入方法依赖的package包/类
@Override
public int hashCode() {
	final int prime = 31;
	int result = 1;
	result = prime * result + Arrays.hashCode(children);
	result = prime * result + ((name == null) ? 0 : name.hashCode());
	result = prime * result + ((parentName == null) ? 0 : parentName.hashCode());
	return result;
}
 
开发者ID:eclipse,项目名称:scanning,代码行数:10,代码来源:AbstractControl.java

示例15: hashCode

import java.util.Arrays; //导入方法依赖的package包/类
@Override
public int hashCode() {
  return Arrays.hashCode(doubles);
}
 
开发者ID:naver,项目名称:hadoop,代码行数:5,代码来源:EnumDoubles.java


注:本文中的java.util.Arrays.hashCode方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。