當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。