Examples of removeAll()


Examples of mage.ConditionalMana.removeAll()

                ConditionalMana c = item.getConditionalMana();
                if (c.apply(ability, game, c.getManaProducerId())) {
                    int count = c.count(filter);
                    if (count > 0) {
                        total += count;
                        c.removeAll(filter);
                        if (c.count() == 0) {
                            it.remove();
                        }
                    }
                }
View Full Code Here

Examples of mage.cards.Cards.removeAll()

                        opponent = game.getPlayer(game.getOpponents(player.getId()).iterator().next());
                    }
                    TargetCard targetDiscard = new TargetCard(2, Zone.PICK, new FilterCard("cards to put in graveyard"));
                    if (opponent != null && opponent.choose(Outcome.Discard, cards, targetDiscard, game)) {
                        cardsToKeep.removeAll(targetDiscard.getTargets());
                        cards.removeAll(cardsToKeep);
                    }
                }

                for (UUID cardId : cards) {
                    Card card = game.getCard(cardId);
View Full Code Here

Examples of mage.cards.CardsImpl.removeAll()

                    } else {
                        opponent = game.getPlayer(game.getOpponents(player.getId()).iterator().next());
                    }
                    TargetCard targetDiscard = new TargetCard(2, Zone.PICK, new FilterCard("cards to put in graveyard"));
                    if (opponent != null && opponent.choose(Outcome.Discard, cards, targetDiscard, game)) {
                        cardsToKeep.removeAll(targetDiscard.getTargets());
                        cards.removeAll(cardsToKeep);
                    }
                }

                for (UUID cardId : cards) {
View Full Code Here

Examples of net.sf.ehcache.Cache.removeAll()

        String cacheName = null;
        try {
          // delete cache
          Cache c = (Cache)dc.getUserObject();
          cacheName = c.getName();
          c.removeAll();
        } catch (IllegalStateException e) {
          // ignore
          log.error("Cannot remove Cache:"+cacheName, e);
        }
        // update tablemodel
View Full Code Here

Examples of net.sf.ehcache.Ehcache.removeAll()

        jdbcTemplate.execute(query);
    }

    private Ehcache getCache() {
        Ehcache cache = cacheManager.getCache("basiclookuptestcache");
        cache.removeAll();
        return cache;
    }

    @Test
    public void testAclsRetrievalWithDefaultBatchSize() throws Exception {
View Full Code Here

Examples of net.sf.jpluck.xml.ContextAdapter.removeAll()

        org.w3c.dom.Document dom = element.getOwnerDocument();
        ContextAdapter ctx = new ContextAdapter(JXPathContext.newContext(element));
        if (!editingDefault) {
            ctx.setValue("name", nameText.getText());
        }
        ctx.removeAll("category");

        Pointer p = ctx.getPointer("description|schedule|transform|autoBookmark");
        for (int i = 0; i < categories.length; i++) {
            Element category = (Element) dom.createElement("category");
            category.appendChild(dom.createTextNode(categories[i]));
View Full Code Here

Examples of net.sf.nebulacards.main.PileOfCards.removeAll()

    synchronized (coms[where]) {
      if (!m_game.getHands()[where].isEmpty())
        coms[where].dealHand(new PileOfCards(m_game.getHands()[where]));
      coms[where].setTrump(m_game.getTrump(), m_game.getTrumpName());
      PileOfCards tmp = new PileOfCards(beenPlayed);
      tmp.removeAll(tableau);
      coms[where].playedSoFar(tmp);
      // resend tableau
      for (int i = 0; i < 4; i++) {
        PlayingCard c = tableau.get(i);
        if (!c.isNull())
View Full Code Here

Examples of nextapp.echo2.app.Composite.removeAll()

            }
        });
        controlsColumn.addButton("Set Content (Label)", new ActionListener() {
            public void actionPerformed(ActionEvent e) {
                if (container.getComponentCount() > 0) {
                    container.removeAll();
                }
                container.add(new Label("Hello, world!"));
            }
        });
        controlsColumn.addButton("Set Content (Long Label)", new ActionListener() {
View Full Code Here

Examples of nextapp.echo2.app.Grid.removeAll()

            }
        });
       
        controlsColumn.addButton("Delete All Cells", new ActionListener() {
            public void actionPerformed(ActionEvent e) {
                grid.removeAll();
            }
        });
       
        controlsColumn.addButton("Add Row-Button Cell", new ActionListener() {
            public void actionPerformed(ActionEvent e) {
View Full Code Here

Examples of nextapp.echo2.app.Panel.removeAll()

            }
        });
        controlsColumn.addButton("Set Content (Grid)", new ActionListener() {
            public void actionPerformed(ActionEvent e) {
                if (panel.getComponentCount() > 0) {
                    panel.removeAll();
                }
                Grid grid = new Grid();
                grid.setBorder(StyleUtil.randomBorder());
                grid.setInsets(new Insets(StyleUtil.randomExtent(8)));
                grid.add(new Label("A label"));
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.