本文整理汇总了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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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});
}
示例12: hashCode
import java.util.Arrays; //导入方法依赖的package包/类
@Override
public int hashCode() {
Type [] lowerBounds = getLowerBounds();
Type [] upperBounds = getUpperBounds();
return Arrays.hashCode(lowerBounds) ^ Arrays.hashCode(upperBounds);
}
示例13: hashCode
import java.util.Arrays; //导入方法依赖的package包/类
@Override
public int hashCode() {
if (hash == 0 && registers.length > 0) {
hash = Arrays.hashCode(registers);
}
return hash;
}
示例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;
}
示例15: hashCode
import java.util.Arrays; //导入方法依赖的package包/类
@Override
public int hashCode() {
return Arrays.hashCode(doubles);
}