本文整理了Java中org.apache.sis.util.Utilities.deepHashCode()
方法的一些代码示例,展示了Utilities.deepHashCode()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Utilities.deepHashCode()
方法的具体详情如下:
包路径:org.apache.sis.util.Utilities
类名称:Utilities
方法名:deepHashCode
[英]Returns a hash code for the specified object, which may be an array. This method returns one of the following values:
代码示例来源:origin: org.apache.sis.core/sis-utility
/**
* Returns a hash code value for this international text.
*
* @return a hash code value for this international text.
*/
@Override
public final int hashCode() {
return getClass().hashCode() ^ (key + 31*Utilities.deepHashCode(arguments)) ^ (int) serialVersionUID;
}
代码示例来源:origin: apache/sis
/**
* Returns a hash code value for this international text.
*
* @return a hash code value for this international text.
*/
@Override
public final int hashCode() {
return getClass().hashCode() ^ (key + 31*Utilities.deepHashCode(arguments)) ^ (int) serialVersionUID;
}
代码示例来源:origin: org.apache.sis.core/sis-utility
/**
* Returns the hash code value for the given key.
*
* @param key the key (can not be null).
*/
final int keyHashCode(final Object key) {
switch (comparisonMode) {
case IDENTITY: return System.identityHashCode(key);
case EQUALS: return key.hashCode();
case DEEP_EQUALS: return Utilities.deepHashCode(key);
default: throw new AssertionError(comparisonMode);
}
}
代码示例来源:origin: apache/sis
/**
* Returns the hash code value for the given key.
*
* @param key the key (can not be null).
*/
final int keyHashCode(final Object key) {
switch (comparisonMode) {
case IDENTITY: return System.identityHashCode(key);
case EQUALS: return key.hashCode();
case DEEP_EQUALS: return Utilities.deepHashCode(key);
default: throw new AssertionError(comparisonMode);
}
}
代码示例来源:origin: org.apache.sis.core/sis-utility
/**
* Returns a hash code value for this record.
*
* @return a hash code value for this record.
*/
@Override
public int hashCode() {
return Utilities.deepHashCode(values) ^ definition.getRecordType().hashCode();
}
代码示例来源:origin: apache/sis
/**
* Returns a hash code value for this record.
*
* @return a hash code value for this record.
*/
@Override
public int hashCode() {
return Utilities.deepHashCode(values) ^ definition.getRecordType().hashCode();
}
代码示例来源:origin: org.apache.sis.core/sis-utility
final int hash = (mayContainArrays ? Utilities.deepHashCode(obj) : obj.hashCode()) & HASH_MASK;
int index = hash % table.length;
for (Entry e=table[index]; e!=null; e=(Entry) e.next) {
代码示例来源:origin: apache/sis
final int hash = (mayContainArrays ? Utilities.deepHashCode(obj) : obj.hashCode()) & HASH_MASK;
int index = hash % table.length;
for (Entry e=table[index]; e!=null; e=(Entry) e.next) {
内容来源于网络,如有侵权,请联系作者删除!