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


Java Objects.hashCode方法代码示例

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


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

示例1: hashCode

import java.util.Objects; //导入方法依赖的package包/类
@Override
public int hashCode() {
    int hash = 3;
    hash = 43 * hash + this.index;
    hash = 43 * hash + this.width;
    hash = 43 * hash + this.height;
    hash = 43 * hash + (this.allowGrid ? 1 : 0);
    hash = 43 * hash + this.blockAlign;
    hash = 43 * hash + Objects.hashCode(this.data);
    hash = 43 * hash + this.dataAlign;
    hash = 43 * hash + this.x;
    hash = 43 * hash + this.y;
    hash = 43 * hash + Objects.hashCode(this.rightBlock);
    hash = 43 * hash + Objects.hashCode(this.belowBlock);
    return hash;
}
 
开发者ID:BlackCraze,项目名称:GameResourceBot,代码行数:17,代码来源:Block.java

示例2: hashCode

import java.util.Objects; //导入方法依赖的package包/类
@Override
public int hashCode() {
    int hash = 3;
    hash = 71 * hash + this.ID;
    hash = 71 * hash + Objects.hashCode(this.Name);
    hash = 71 * hash + Objects.hashCode(this.Default_Source);
    hash = 71 * hash + Objects.hashCode(this.Default_Dest);
    return hash;
}
 
开发者ID:projets2017cl,项目名称:vc,代码行数:10,代码来源:Operation_type.java

示例3: hashCode

import java.util.Objects; //导入方法依赖的package包/类
@Override
public int hashCode() {
  return 37
      * Objects.hashCode(this.ancestorSystem)
      * Objects.hashCode(this.ancestorValue)
      * Objects.hashCode(this.descendantSystem)
      * Objects.hashCode(this.descendantValue);
}
 
开发者ID:cerner,项目名称:bunsen,代码行数:9,代码来源:Hierarchies.java

示例4: hashCode

import java.util.Objects; //导入方法依赖的package包/类
@Override
public int hashCode() {
    int hash = 7;
    hash = 59 * hash + this.desc;
    hash = 59 * hash + Objects.hashCode(this.entry);
    return hash;
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:8,代码来源:Fixups.java

示例5: hashCode

import java.util.Objects; //导入方法依赖的package包/类
@Override
public int hashCode() {
	int hash = 7;
	hash = 29 * hash + Objects.hashCode(this.packageName);
	hash = 29 * hash + Objects.hashCode(this.className);
	hash = 29 * hash + Objects.hashCode(this.methodName);
	hash = 29 * hash + this.LoC;
	return hash;
}
 
开发者ID:ghaffarian,项目名称:progex,代码行数:10,代码来源:JavaICFGBuilder.java

示例6: hashCode

import java.util.Objects; //导入方法依赖的package包/类
@Override
public int hashCode() {
    return
        Arrays.hashCode(actualTypeArguments) ^
        Objects.hashCode(ownerType) ^
        Objects.hashCode(rawType);
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:8,代码来源:ParameterizedTypeImpl.java

示例7: hashCode

import java.util.Objects; //导入方法依赖的package包/类
@Override
public int hashCode() {
    int hash = 7;
    hash = 59 * hash + Objects.hashCode(this.name);
    hash = 59 * hash + (int) (this.id ^ (this.id >>> 32));
    return hash;
}
 
开发者ID:hazelcast,项目名称:betleopard,代码行数:8,代码来源:Horse.java

示例8: hashCode

import java.util.Objects; //导入方法依赖的package包/类
@Override
public int hashCode() {
    int hash = 7;
    hash = 89 * hash + (int) (this.id ^ (this.id >>> 32));
    hash = 89 * hash + Objects.hashCode(this.plane);
    hash = 89 * hash + Objects.hashCode(this.companyId);
    hash = 89 * hash + Objects.hashCode(this.flightState);
    hash = 89 * hash + Objects.hashCode(this.departureTime);
    hash = 89 * hash + Objects.hashCode(this.arrivalTime);
    hash = 89 * hash + Objects.hashCode(this.departureAirport);
    hash = 89 * hash + Objects.hashCode(this.arrivalAirport);
    hash = 89 * hash + Objects.hashCode(this.isActive);
    return hash;
}
 
开发者ID:stoiandan,项目名称:flightmanager,代码行数:15,代码来源:Flight.java

示例9: hashCode

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

示例10: hashCode

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

示例11: hashCode

import java.util.Objects; //导入方法依赖的package包/类
@Override
public int hashCode() {
	return Objects.hashCode(this.name);
}
 
开发者ID:future-architect,项目名称:uroborosql,代码行数:5,代码来源:DomainTest.java

示例12: hashCode

import java.util.Objects; //导入方法依赖的package包/类
@Override
public int hashCode() {
  return Objects.hashCode(first) ^ Objects.hashCode(second);
}
 
开发者ID:oncewang,项目名称:oryx2,代码行数:5,代码来源:Pair.java

示例13: hashCode

import java.util.Objects; //导入方法依赖的package包/类
@Override
public int hashCode() {
    return 31 * super.hashCode() + Objects.hashCode(normalizer);
}
 
开发者ID:justor,项目名称:elasticsearch_my,代码行数:5,代码来源:KeywordFieldMapper.java

示例14: hashCode

import java.util.Objects; //导入方法依赖的package包/类
@Override
public int hashCode() {
  return Objects.hashCode(key) ^ Objects.hashCode(entry.getValue());
}
 
开发者ID:kroepke,项目名称:luna,代码行数:5,代码来源:TraversableHashMap.java


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