本文整理了Java中java.lang.reflect.Field.hashCode()
方法的一些代码示例,展示了Field.hashCode()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Field.hashCode()
方法的具体详情如下:
包路径:java.lang.reflect.Field
类名称:Field
方法名:hashCode
[英]Returns an integer hash code for this field. Objects which are equal return the same value for this method.
The hash code for a Field is the exclusive-or combination of the hash code of the field's name and the hash code of the name of its declaring class.
[中]返回此字段的整数哈希代码。相等的对象为此方法返回相同的值。
字段的哈希代码是字段名称的哈希代码与其声明类名称的哈希代码的异或组合。
代码示例来源:origin: jersey/jersey
@Override
public int hashCode() {
int hash = 7;
hash = 83 * hash + (this.field != null ? this.field.hashCode() : 0);
return hash;
}
代码示例来源:origin: org.mockito/mockito-core
@Override
public int hashCode() {
int result = field.hashCode();
result = 31 * result + instance.hashCode();
return result;
}
}
代码示例来源:origin: spring-projects/spring-loaded
public static int callHashCode(Field thiz) {
return thiz.hashCode();
}
代码示例来源:origin: google/j2objc
@Override
public int hashCode() {
int result = field.hashCode();
result = 31 * result + instance.hashCode();
return result;
}
}
代码示例来源:origin: spring-projects/spring-framework
@Override
public int hashCode() {
return (this.field != null ? this.field.hashCode() : ObjectUtils.nullSafeHashCode(this.methodParameter));
}
代码示例来源:origin: org.springframework/spring-beans
@Override
public int hashCode() {
return (this.field != null ? this.field.hashCode() : ObjectUtils.nullSafeHashCode(this.methodParameter));
}
代码示例来源:origin: pentaho/pentaho-kettle
@Override
public int hashCode() {
final int prime = 31;
int result = 1;
result = prime * result + ( ( field == null ) ? 0 : field.hashCode() );
return result;
}
代码示例来源:origin: mulesoft/mule
@Override
public int hashCode() {
return field.hashCode();
}
}
代码示例来源:origin: mulesoft/mule
@Override
public int hashCode() {
final int prime = 31;
int result = 1;
result = prime * result + ((field == null) ? 0 : field.hashCode());
return result;
}
代码示例来源:origin: com.beust/jcommander
@Override
public int hashCode() {
final int prime = 31;
int result = 1;
result = prime * result + ((field == null) ? 0 : field.hashCode());
result = prime * result + ((method == null) ? 0 : method.hashCode());
return result;
}
代码示例来源:origin: webx/citrus
@Override
public int hashCode() {
return getClass().hashCode() ^ field.hashCode();
}
代码示例来源:origin: webx/citrus
@Override
public int hashCode() {
return getClass().hashCode() ^ field.hashCode();
}
代码示例来源:origin: webx/citrus
@Override
public int hashCode() {
return getClass().hashCode() ^ field.hashCode();
}
代码示例来源:origin: inspectIT/inspectIT
/**
* {@inheritDoc}
*/
@Override
public int hashCode() {
final int prime = 31;
int result = 1;
result = (prime * result) + ((this.injectee == null) ? 0 : this.injectee.hashCode());
return result;
}
代码示例来源:origin: weld/core
@Override
public int hashCode() {
final int prime = 31;
int result = 1;
result = prime * result + ((field == null) ? 0 : field.hashCode());
return result;
}
代码示例来源:origin: broadgsa/gatk
/**
* Returns an appropriate hash code for this argument source.
* @return A uniformly distributed hashcode representing this argument source.
*/
@Override
public int hashCode() {
return field.hashCode();
}
代码示例来源:origin: org.springframework.data/spring-data-commons-core
@Override
public int hashCode() {
return this.field.hashCode();
}
}
代码示例来源:origin: com.mycila/mycila-jmx
@Override
public int hashCode() {
return field.hashCode();
}
}
代码示例来源:origin: org.hibernate.validator/hibernate-validator
@Override
public int hashCode() {
int result = field != null ? field.hashCode() : 0;
result = 31 * result + typeForValidatorResolution.hashCode();
return result;
}
代码示例来源:origin: org.eclipse.e4.core/di
public int hashCode() {
final int prime = 31;
int result = super.hashCode();
result = prime * result + ((field == null) ? 0 : field.hashCode());
return result;
}
内容来源于网络,如有侵权,请联系作者删除!