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

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

本文整理了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

  1. void setFocusedWindowNoEvent(ManagedWindow w) {
  2. if (w == null) {
  3. focusedWindowStack.pop();
  4. } else {
  5. focusedWindowStack.removeElement(w);
  6. focusedWindowStack.push(w);
  7. }
  8. }

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

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

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

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

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

  1. @Override
  2. public void removeTab(Tab tab) {
  3. super.removeTab(tab);
  4. //noinspection StatementWithEmptyBody
  5. while (openedComponents.removeElement(tab)) {
  6. }
  7. }

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

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

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

  1. public void silentCloseTabAndSelectPrevious(Component tab) {
  2. while (openedComponents.removeElement(tab)) {
  3. openedComponents.removeElement(tab);
  4. }
  5. if ((!openedComponents.empty()) && (_selected().equals(tab))) {
  6. Component c = openedComponents.pop();
  7. while (!_components().contains(c) && !openedComponents.isEmpty()) {
  8. c = openedComponents.pop();
  9. }
  10. setSelectedTab(c);
  11. }
  12. }

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

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

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

  1. public static void purgeAction(TransactionImpl act, Thread t, boolean unregister) throws NoSuchElementException {
  2. if ((act != null) && (unregister)) {
  3. act.removeChildThread(ThreadUtil.getThreadId(t));
  4. }
  5. Stack txs = (Stack) _threadList.get();
  6. if (txs != null) {
  7. txs.removeElement(act);
  8. if (txs.size() == 0) {
  9. _threadList.set(null);
  10. }
  11. }
  12. }

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

  1. public static void purgeAction (BasicAction act, Thread t, boolean unregister)
  2. throws NoSuchElementException
  3. {
  4. if ((act != null) && (unregister))
  5. {
  6. act.removeChildThread(ThreadUtil.getThreadId(t));
  7. }
  8. Stack txs = (Stack) _threadList.get();
  9. if (txs != null)
  10. {
  11. txs.removeElement(act);
  12. if (txs.size() == 0)
  13. {
  14. _threadList.set(null);
  15. }
  16. }
  17. }

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

  1. public static void purgeAction (BasicAction act, Thread t, boolean unregister)
  2. throws NoSuchElementException
  3. {
  4. if ((act != null) && (unregister))
  5. {
  6. act.removeChildThread(ThreadUtil.getThreadId(t));
  7. }
  8. Stack txs = (Stack) _threadList.get();
  9. if (txs != null)
  10. {
  11. txs.removeElement(act);
  12. if (txs.size() == 0)
  13. {
  14. _threadList.set(null);
  15. }
  16. }
  17. }

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

  1. public static void purgeAction (BasicAction act, Thread t, boolean unregister)
  2. throws NoSuchElementException
  3. {
  4. if ((act != null) && (unregister))
  5. {
  6. act.removeChildThread(ThreadUtil.getThreadId(t));
  7. }
  8. Stack txs = (Stack) _threadList.get();
  9. if (txs != null)
  10. {
  11. txs.removeElement(act);
  12. if (txs.size() == 0)
  13. {
  14. _threadList.set(null);
  15. }
  16. }
  17. }

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

  1. public static void purgeAction (BasicAction act, Thread t, boolean unregister)
  2. throws NoSuchElementException
  3. {
  4. if ((act != null) && (unregister))
  5. {
  6. act.removeChildThread(ThreadUtil.getThreadId(t));
  7. }
  8. Stack txs = (Stack) _threadList.get();
  9. if (txs != null)
  10. {
  11. txs.removeElement(act);
  12. if (txs.size() == 0)
  13. {
  14. _threadList.set(null);
  15. }
  16. }
  17. }

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

  1. public static void purgeAction (BasicAction act, Thread t, boolean unregister)
  2. throws NoSuchElementException
  3. {
  4. if ((act != null) && (unregister))
  5. {
  6. act.removeChildThread(ThreadUtil.getThreadId(t));
  7. }
  8. Stack txs = (Stack) _threadList.get();
  9. if (txs != null)
  10. {
  11. txs.removeElement(act);
  12. if (txs.size() == 0)
  13. {
  14. _threadList.set(null);
  15. }
  16. }
  17. }

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

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

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

  1. try
  2. this.executeStack.removeElement(txentity);

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

  1. try
  2. this.executeStack.removeElement(txentity);

相关文章