本文整理了Java中java.util.IdentityHashMap.getModuloHash()
方法的一些代码示例,展示了IdentityHashMap.getModuloHash()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。IdentityHashMap.getModuloHash()
方法的具体详情如下:
包路径:java.util.IdentityHashMap
类名称:IdentityHashMap
方法名:getModuloHash
暂无
代码示例来源:origin: robovm/robovm
/**
* Returns the index where the key is found at, or the index of the next
* empty spot if the key is not found in this table.
*/
private int findIndex(Object key, Object[] array) {
int length = array.length;
int index = getModuloHash(key, length);
int last = (index + length - 2) % length;
while (index != last) {
if (array[index] == key || (array[index] == null)) {
/*
* Found the key, or the next empty spot (which means key is not
* in the table)
*/
break;
}
index = (index + 2) % length;
}
return index;
}
代码示例来源:origin: robovm/robovm
hash = getModuloHash(object, length);
hashedOk = hash > index;
if (next < index) {
代码示例来源:origin: com.jtransc/jtransc-rt
/**
* Returns the index where the key is found at, or the index of the next
* empty spot if the key is not found in this table.
*/
private int findIndex(Object key, Object[] array) {
int length = array.length;
int index = getModuloHash(key, length);
int last = (index + length - 2) % length;
while (index != last) {
if (array[index] == key || (array[index] == null)) {
/*
* Found the key, or the next empty spot (which means key is not
* in the table)
*/
break;
}
index = (index + 2) % length;
}
return index;
}
代码示例来源:origin: com.mobidevelop.robovm/robovm-rt
/**
* Returns the index where the key is found at, or the index of the next
* empty spot if the key is not found in this table.
*/
private int findIndex(Object key, Object[] array) {
int length = array.length;
int index = getModuloHash(key, length);
int last = (index + length - 2) % length;
while (index != last) {
if (array[index] == key || (array[index] == null)) {
/*
* Found the key, or the next empty spot (which means key is not
* in the table)
*/
break;
}
index = (index + 2) % length;
}
return index;
}
代码示例来源:origin: com.bugvm/bugvm-rt
/**
* Returns the index where the key is found at, or the index of the next
* empty spot if the key is not found in this table.
*/
private int findIndex(Object key, Object[] array) {
int length = array.length;
int index = getModuloHash(key, length);
int last = (index + length - 2) % length;
while (index != last) {
if (array[index] == key || (array[index] == null)) {
/*
* Found the key, or the next empty spot (which means key is not
* in the table)
*/
break;
}
index = (index + 2) % length;
}
return index;
}
代码示例来源:origin: MobiVM/robovm
/**
* Returns the index where the key is found at, or the index of the next
* empty spot if the key is not found in this table.
*/
private int findIndex(Object key, Object[] array) {
int length = array.length;
int index = getModuloHash(key, length);
int last = (index + length - 2) % length;
while (index != last) {
if (array[index] == key || (array[index] == null)) {
/*
* Found the key, or the next empty spot (which means key is not
* in the table)
*/
break;
}
index = (index + 2) % length;
}
return index;
}
代码示例来源:origin: ibinti/bugvm
/**
* Returns the index where the key is found at, or the index of the next
* empty spot if the key is not found in this table.
*/
private int findIndex(Object key, Object[] array) {
int length = array.length;
int index = getModuloHash(key, length);
int last = (index + length - 2) % length;
while (index != last) {
if (array[index] == key || (array[index] == null)) {
/*
* Found the key, or the next empty spot (which means key is not
* in the table)
*/
break;
}
index = (index + 2) % length;
}
return index;
}
代码示例来源:origin: com.gluonhq/robovm-rt
/**
* Returns the index where the key is found at, or the index of the next
* empty spot if the key is not found in this table.
*/
private int findIndex(Object key, Object[] array) {
int length = array.length;
int index = getModuloHash(key, length);
int last = (index + length - 2) % length;
while (index != last) {
if (array[index] == key || (array[index] == null)) {
/*
* Found the key, or the next empty spot (which means key is not
* in the table)
*/
break;
}
index = (index + 2) % length;
}
return index;
}
代码示例来源:origin: FlexoVM/flexovm
/**
* Returns the index where the key is found at, or the index of the next
* empty spot if the key is not found in this table.
*/
private int findIndex(Object key, Object[] array) {
int length = array.length;
int index = getModuloHash(key, length);
int last = (index + length - 2) % length;
while (index != last) {
if (array[index] == key || (array[index] == null)) {
/*
* Found the key, or the next empty spot (which means key is not
* in the table)
*/
break;
}
index = (index + 2) % length;
}
return index;
}
代码示例来源:origin: com.mobidevelop.robovm/robovm-rt
hash = getModuloHash(object, length);
hashedOk = hash > index;
if (next < index) {
代码示例来源:origin: MobiVM/robovm
hash = getModuloHash(object, length);
hashedOk = hash > index;
if (next < index) {
代码示例来源:origin: ibinti/bugvm
hash = getModuloHash(object, length);
hashedOk = hash > index;
if (next < index) {
代码示例来源:origin: com.bugvm/bugvm-rt
hash = getModuloHash(object, length);
hashedOk = hash > index;
if (next < index) {
代码示例来源:origin: com.jtransc/jtransc-rt
hash = getModuloHash(object, length);
hashedOk = hash > index;
if (next < index) {
代码示例来源:origin: com.gluonhq/robovm-rt
hash = getModuloHash(object, length);
hashedOk = hash > index;
if (next < index) {
代码示例来源:origin: FlexoVM/flexovm
hash = getModuloHash(object, length);
hashedOk = hash > index;
if (next < index) {
内容来源于网络,如有侵权,请联系作者删除!