java.util.Stack.removeElement()方法的使用及代码示例

x33g5p2x  于2022-01-29 转载在 其他  
字(4.5k)|赞(0)|评价(0)|浏览(130)

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

Stack.removeElement介绍

暂无

代码示例

代码示例来源:origin: net.java.openjdk.cacio/cacio-shared

void setFocusedWindowNoEvent(ManagedWindow w) {
  if (w == null) {
    focusedWindowStack.pop();
  } else {
    focusedWindowStack.removeElement(w);
    focusedWindowStack.push(w);
  }
}

代码示例来源:origin: org.apache.airavata/airavata-messenger-commons

public synchronized void free(Connection connection) {
  busyConnections.removeElement(connection);
  availableConnections.addElement(connection);
  // Wake up threads that are waiting for a connection
  notifyAll();
}

代码示例来源:origin: org.apache.airavata/messenger-commons

public synchronized void free(Connection connection) {
  busyConnections.removeElement(connection);
  availableConnections.addElement(connection);
  // Wake up threads that are waiting for a connection
  notifyAll();
}

代码示例来源:origin: com.haulmont.cuba/cuba-web-widgets

@Override
public void removeTab(Tab tab) {
  super.removeTab(tab);
  //noinspection StatementWithEmptyBody
  while (openedComponents.removeElement(tab)) {
  }
}

代码示例来源:origin: org.apache.airavata/airavata-registry-service

public synchronized void free(Connection connection) {
  busyConnections.removeElement(connection);
  availableConnections.addElement(connection);
  // Wake up threads that are waiting for a connection
  notifyAll();
}

代码示例来源:origin: com.haulmont.cuba/cuba-web-widgets

public void silentCloseTabAndSelectPrevious(Component tab) {
  while (openedComponents.removeElement(tab)) {
    openedComponents.removeElement(tab);
  }
  if ((!openedComponents.empty()) && (_selected().equals(tab))) {
    Component c = openedComponents.pop();
    while (!_components().contains(c) && !openedComponents.isEmpty()) {
      c = openedComponents.pop();
    }
    setSelectedTab(c);
  }
}

代码示例来源:origin: org.apache.airavata/airavata-api-server

public synchronized void free(Connection connection) {
  busyConnections.removeElement(connection);
  availableConnections.addElement(connection);
  // Wake up threads that are waiting for a connection
  notifyAll();
}

代码示例来源:origin: org.jboss.narayana.blacktie/blacktie-jatmibroker-xatmi

public static void purgeAction(TransactionImpl act, Thread t, boolean unregister) throws NoSuchElementException {
  if ((act != null) && (unregister)) {
    act.removeChildThread(ThreadUtil.getThreadId(t));
  }
  Stack txs = (Stack) _threadList.get();
  if (txs != null) {
    txs.removeElement(act);
    if (txs.size() == 0) {
      _threadList.set(null);
    }
  }
}

代码示例来源:origin: org.jboss.jbossts.arjunacore/arjunacore

public static void purgeAction (BasicAction act, Thread t, boolean unregister)
    throws NoSuchElementException
{
  if ((act != null) && (unregister))
  {
    act.removeChildThread(ThreadUtil.getThreadId(t));
  }
  Stack txs = (Stack) _threadList.get();
  if (txs != null)
  {
    txs.removeElement(act);
    if (txs.size() == 0)
    {
      _threadList.set(null);
    }
  }
}

代码示例来源:origin: jboss.jbossts/jbossjts

public static void purgeAction (BasicAction act, Thread t, boolean unregister)
    throws NoSuchElementException
{
  if ((act != null) && (unregister))
  {
    act.removeChildThread(ThreadUtil.getThreadId(t));
  }
  Stack txs = (Stack) _threadList.get();
  if (txs != null)
  {
    txs.removeElement(act);
    if (txs.size() == 0)
    {
      _threadList.set(null);
    }
  }
}

代码示例来源:origin: org.jboss.jbossts.arjunacore/arjuna

public static void purgeAction (BasicAction act, Thread t, boolean unregister)
    throws NoSuchElementException
{
  if ((act != null) && (unregister))
  {
    act.removeChildThread(ThreadUtil.getThreadId(t));
  }
  Stack txs = (Stack) _threadList.get();
  if (txs != null)
  {
    txs.removeElement(act);
    if (txs.size() == 0)
    {
      _threadList.set(null);
    }
  }
}

代码示例来源:origin: org.jboss.jbossts/jbossjta

public static void purgeAction (BasicAction act, Thread t, boolean unregister)
    throws NoSuchElementException
{
  if ((act != null) && (unregister))
  {
    act.removeChildThread(ThreadUtil.getThreadId(t));
  }
  Stack txs = (Stack) _threadList.get();
  if (txs != null)
  {
    txs.removeElement(act);
    if (txs.size() == 0)
    {
      _threadList.set(null);
    }
  }
}

代码示例来源:origin: org.jboss.jbossts.jta/narayana-jta

public static void purgeAction (BasicAction act, Thread t, boolean unregister)
    throws NoSuchElementException
{
  if ((act != null) && (unregister))
  {
    act.removeChildThread(ThreadUtil.getThreadId(t));
  }
  Stack txs = (Stack) _threadList.get();
  if (txs != null)
  {
    txs.removeElement(act);
    if (txs.size() == 0)
    {
      _threadList.set(null);
    }
  }
}

代码示例来源:origin: org.openscience.cdk/cdk-legacy

int potentialVertexIndex = potentialVertex.get(index);
potentialCVertex.removeElement(potentialVertexIndex);

代码示例来源:origin: com.bbossgroups/bboss-persistent

try
  this.executeStack.removeElement(txentity);

代码示例来源:origin: com.bbossgroups/bboss-persistent

try
  this.executeStack.removeElement(txentity);

相关文章