org.openide.util.WeakSet.checkRefQueue()方法的使用及代码示例

x33g5p2x  于2022-02-03 转载在 其他  
字(2.4k)|赞(0)|评价(0)|浏览(184)

本文整理了Java中org.openide.util.WeakSet.checkRefQueue()方法的一些代码示例,展示了WeakSet.checkRefQueue()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。WeakSet.checkRefQueue()方法的具体详情如下:
包路径:org.openide.util.WeakSet
类名称:WeakSet
方法名:checkRefQueue

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;
  }
}

相关文章