本文整理了Java中org.openide.util.WeakSet.checkRefQueue()
方法的一些代码示例,展示了WeakSet.checkRefQueue()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。WeakSet.checkRefQueue()
方法的具体详情如下:
包路径:org.openide.util.WeakSet
类名称:WeakSet
方法名:checkRefQueue
[英]Checks if the queue is empty if not pending weak refs are removed.
[中]如果未删除挂起的弱引用,则检查队列是否为空。
代码示例来源:origin: net.sf.squirrel-sql.thirdparty-non-maven/openide
/** @return the number of elements in this set (its cardinality). */
public int size() {
checkRefQueue ();
return size;
}
代码示例来源:origin: in.jlibs/org-openide-util
/** @return the number of elements in this set (its cardinality). */
public int size() {
checkRefQueue();
return size;
}
代码示例来源:origin: net.sf.squirrel-sql.thirdpary-non-maven/openide
/** @return the number of elements in this set (its cardinality). */
public int size() {
checkRefQueue ();
return size;
}
代码示例来源:origin: in.jlibs/org-openide-util
/** @return an Entry with given object */
private Entry object2Entry(Object o) {
checkRefQueue(); // clear ref q
int hash = hashIt(o);
Entry e = entries[hash];
if (e == null) {
return null;
}
while ((e != null) && !e.equals(o)) {
e = e.next;
}
return e;
}
代码示例来源:origin: net.sf.squirrel-sql.thirdpary-non-maven/openide
/** @return an Entry with given object */
private Entry object2Entry(Object o) {
checkRefQueue(); // clear ref q
int hash = hashIt(o);
Entry e = entries[hash];
if (e == null) {
return null;
}
while ((e != null) && !e.equals(o)) {
e = e.next;
}
return e;
}
代码示例来源:origin: net.sf.squirrel-sql.thirdparty-non-maven/openide
/** @return an Entry with given object */
private Entry object2Entry(Object o) {
checkRefQueue(); // clear ref q
int hash = hashIt(o);
Entry e = entries[hash];
if (e == null) {
return null;
}
while ((e != null) && !e.equals(o)) {
e = e.next;
}
return e;
}
代码示例来源:origin: net.sf.squirrel-sql.thirdpary-non-maven/openide
public Object next() {
checkModcount();
checkRefQueue();
if (myNullCount > 0) {
myNullCount--;
return null;
} else {
if (next == null) {
throw new java.util.NoSuchElementException();
}
current = next;
currentObj = nextObj;
// move to next requested
do {
next = next.iterChainNext;
if (next == null) {
break;
}
nextObj = next.get();
} while (next.isEnqueued());
return currentObj;
}
}
代码示例来源:origin: net.sf.squirrel-sql.thirdparty-non-maven/openide
public Object next() {
checkModcount();
checkRefQueue();
if (myNullCount > 0) {
myNullCount--;
return null;
} else {
if (next == null) {
throw new java.util.NoSuchElementException();
}
current = next;
currentObj = nextObj;
// move to next requested
do {
next = next.iterChainNext;
if (next == null) {
break;
}
nextObj = next.get();
} while (next.isEnqueued());
return currentObj;
}
}
内容来源于网络,如有侵权,请联系作者删除!