本文整理了Java中java.lang.reflect.Constructor.hashCode()
方法的一些代码示例,展示了Constructor.hashCode()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Constructor.hashCode()
方法的具体详情如下:
包路径:java.lang.reflect.Constructor
类名称:Constructor
方法名:hashCode
[英]Returns an integer hash code for this constructor. Constructors which are equal return the same value for this method. The hash code for a Constructor is the hash code of the name of the declaring class.
[中]返回此构造函数的整数哈希代码。相等的构造函数为此方法返回相同的值。构造函数的哈希代码是声明类名称的哈希代码。
代码示例来源:origin: hibernate/hibernate-orm
/**
* Define our hashCode by our defined constructor's hasCode.
*
* @return Our defined ctor hashCode
*/
@Override
public int hashCode() {
return constructor.hashCode();
}
代码示例来源:origin: oldmanpushcart/greys-anatomy
@Override
public int hashCode() {
return target.hashCode();
}
代码示例来源:origin: alibaba/jvm-sandbox
@Override
public int hashCode() {
return target.hashCode();
}
代码示例来源:origin: spring-projects/spring-loaded
public static int callHashCode(Constructor thiz) {
return thiz.hashCode();
}
代码示例来源:origin: org.testng/testng
@Override
public int hashCode() {
final int prime = 31;
int result = 1;
result = prime * result + ((getConstructor() == null) ? 0 : getConstructor().hashCode());
result = prime * result + ((getMethod() == null) ? 0 : getMethod().hashCode());
return result;
}
代码示例来源:origin: cbeust/testng
@Override
public int hashCode() {
final int prime = 31;
int result = 1;
result = prime * result + ((getConstructor() == null) ? 0 : getConstructor().hashCode());
result = prime * result + ((getMethod() == null) ? 0 : getMethod().hashCode());
return result;
}
代码示例来源:origin: INRIA/spoon
/**
* Returns a hash code based on the executable's hash code and the
* index.
*
* @return A hash code based on the executable's hash code.
*/
public int hashCode() {
if (method == null) {
return constructor.hashCode() ^ index;
}
return method.hashCode() ^ index;
}
代码示例来源:origin: EvoSuite/evosuite
@Override
public int hashCode() {
final int prime = 31;
int result = 1;
result = prime * result
+ ((constructor == null) ? 0 : constructor.hashCode());
return result;
}
代码示例来源:origin: org.jboss.weld.se/weld-se
@Override
public int hashCode() {
final int prime = 31;
int result = 1;
result = prime * result + ((constructor == null) ? 0 : constructor.hashCode());
return result;
}
代码示例来源:origin: com.fasterxml/classmate
public RawConstructor(ResolvedType context, Constructor<?> constructor)
{
super(context);
_constructor = constructor;
_hashCode = (_constructor == null ? 0 : _constructor.hashCode());
}
代码示例来源:origin: org.jboss.aop/jboss-aop
public int hashCode()
{
if (hashCode == 0)
{
hashCode = calling.hashCode() + called.hashCode();
}
return hashCode;
}
代码示例来源:origin: FasterXML/java-classmate
public RawConstructor(ResolvedType context, Constructor<?> constructor)
{
super(context);
_constructor = constructor;
_hashCode = (_constructor == null ? 0 : _constructor.hashCode());
}
代码示例来源:origin: org.jruby/jruby-complete
@Override
public int hashCode() {
return proxyConstructor.hashCode();
}
代码示例来源:origin: org.hibernate.orm/hibernate-core
/**
* Define our hashCode by our defined constructor's hasCode.
*
* @return Our defined ctor hashCode
*/
@Override
public int hashCode() {
return constructor.hashCode();
}
代码示例来源:origin: org.jboss.windup.decompiler.procyon/procyon-reflection
public RawConstructor(final Type context, final Constructor<?> constructor) {
super(context);
_constructor = constructor;
_hashCode = (_constructor == null ? 0 : _constructor.hashCode());
}
代码示例来源:origin: org.eclipse.e4.core/di
public int hashCode() {
final int prime = 31;
int result = super.hashCode();
result = prime * result + ((constructor == null) ? 0 : constructor.hashCode());
return result;
}
代码示例来源:origin: com.fitbur.external/external-bytebuddy
@Override
public int hashCode() {
int result = super.hashCode();
result = 31 * result + methodInfo.hashCode();
return result;
}
代码示例来源:origin: weld/core
@Override
public int hashCode() {
int hash = 1;
hash = hash * 31 + getJavaMember().hashCode();
hash = hash * 31 + getEnhancedParameters().hashCode();
return hash;
}
代码示例来源:origin: weld/core
@Override
public int hashCode() {
int hash = 1;
hash = hash * 31 + getJavaMember().hashCode();
hash = hash * 31 + getEnhancedParameters().hashCode();
return hash;
}
代码示例来源:origin: org.jboss.weld.se/weld-se
@Override
public int hashCode() {
int hash = 1;
hash = hash * 31 + getJavaMember().hashCode();
hash = hash * 31 + getEnhancedParameters().hashCode();
return hash;
}
内容来源于网络,如有侵权,请联系作者删除!