本文整理了Java中java.text.Collator.hashCode()
方法的一些代码示例,展示了Collator.hashCode()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Collator.hashCode()
方法的具体详情如下:
包路径:java.text.Collator
类名称:Collator
方法名:hashCode
[英]Generates the hash code for this Collator.
[中]生成此Collator的哈希代码。
代码示例来源:origin: iterate-ch/cyberduck
@Override
public int hashCode() {
return collator.hashCode();
}
代码示例来源:origin: com.salesforce.i18n/i18n-util
@Override
public int hashCode() {
return this.originalCollator.hashCode();
}
代码示例来源:origin: ru.sbtqa/monte-media
@Override
public int hashCode() {
return collator.hashCode();
}
代码示例来源:origin: at.bestsolution.efxclipse.eclipse/com.ibm.icu.base
public int hashCode() {
return collator.hashCode();
}
}
代码示例来源:origin: at.bestsolution.eclipse/com.ibm.icu.base
public int hashCode() {
return collator.hashCode();
}
}
代码示例来源:origin: org.apache.lucene/com.springsource.org.apache.lucene
/** Returns a hash code value for this object.*/
public int hashCode() {
int h = fieldName.hashCode();
h ^= lowerTerm != null ? lowerTerm.hashCode() : 0xB6ECE882;
h = (h << 1) | (h >>> 31); // rotate to distinguish lower from upper
h ^= (upperTerm != null ? (upperTerm.hashCode()) : 0x91BEC2C2);
h ^= (includeLower ? 0xD484B933 : 0)
^ (includeUpper ? 0x6AE423AC : 0);
h ^= collator != null ? collator.hashCode() : 0;
return h;
}
}
代码示例来源:origin: org.apache.lucene/lucene-core-jfrog
/** Returns a hash code value for this object.*/
public int hashCode() {
int h = fieldName.hashCode();
h ^= lowerTerm != null ? lowerTerm.hashCode() : 0xB6ECE882;
h = (h << 1) | (h >>> 31); // rotate to distinguish lower from upper
h ^= (upperTerm != null ? (upperTerm.hashCode()) : 0x91BEC2C2);
h ^= (includeLower ? 0xD484B933 : 0)
^ (includeUpper ? 0x6AE423AC : 0);
h ^= collator != null ? collator.hashCode() : 0;
return h;
}
}
代码示例来源:origin: org.apache.lucene/lucene-core-jfrog
/** Returns a hash code value for this object.*/
public int hashCode() {
int h = Float.floatToIntBits(getBoost()) ^ fieldName.hashCode();
// hashCode of "" is 0, so don't use that for null...
h ^= lowerVal != null ? lowerVal.hashCode() : 0x965a965a;
// don't just XOR upperVal with out mixing either it or h, as it will cancel
// out lowerVal if they are equal.
h ^= (h << 17) | (h >>> 16); // a reversible (one to one) 32 bit mapping mix
h ^= (upperVal != null ? (upperVal.hashCode()) : 0x5a695a69);
h ^= (includeLower ? 0x665599aa : 0)
^ (includeUpper ? 0x99aa5566 : 0);
h ^= collator != null ? collator.hashCode() : 0;
return h;
}
}
代码示例来源:origin: org.apache.lucene/com.springsource.org.apache.lucene
/** Returns a hash code value for this object.*/
public int hashCode() {
int h = Float.floatToIntBits(getBoost()) ^ fieldName.hashCode();
// hashCode of "" is 0, so don't use that for null...
h ^= lowerVal != null ? lowerVal.hashCode() : 0x965a965a;
// don't just XOR upperVal with out mixing either it or h, as it will cancel
// out lowerVal if they are equal.
h ^= (h << 17) | (h >>> 16); // a reversible (one to one) 32 bit mapping mix
h ^= (upperVal != null ? (upperVal.hashCode()) : 0x5a695a69);
h ^= (includeLower ? 0x665599aa : 0)
^ (includeUpper ? 0x99aa5566 : 0);
h ^= collator != null ? collator.hashCode() : 0;
return h;
}
}
代码示例来源:origin: org.apache.lucene/com.springsource.org.apache.lucene
/** Returns a hash code value for this object.*/
public int hashCode() {
int h = Float.floatToIntBits(getBoost());
h ^= lowerTerm != null ? lowerTerm.hashCode() : 0;
// reversible mix to make lower and upper position dependent and
// to prevent them from cancelling out.
h ^= (h << 25) | (h >>> 8);
h ^= upperTerm != null ? upperTerm.hashCode() : 0;
h ^= this.inclusive ? 0x2742E74A : 0;
h ^= collator != null ? collator.hashCode() : 0;
return h;
}
}
代码示例来源:origin: org.apache.lucene/lucene-core-jfrog
/** Returns a hash code value for this object.*/
public int hashCode() {
int h = Float.floatToIntBits(getBoost());
h ^= lowerTerm != null ? lowerTerm.hashCode() : 0;
// reversible mix to make lower and upper position dependent and
// to prevent them from cancelling out.
h ^= (h << 25) | (h >>> 8);
h ^= upperTerm != null ? upperTerm.hashCode() : 0;
h ^= this.inclusive ? 0x2742E74A : 0;
h ^= collator != null ? collator.hashCode() : 0;
return h;
}
}
内容来源于网络,如有侵权,请联系作者删除!