Examples of removeAll()


Examples of edu.umd.cs.piccolo.PCanvas.removeAll()

      // do this to release all references to graphical objects, such as PShadow,
      // which holds references to BufferedImages
      // this deals with the memory leak problem related to the use
      // of ScreenRegionCanvas
      PCanvas canvas = w.getCanvas();
      canvas.removeAll();
    }
    displayableList.clear();
   
    // force garbage collection
    System.gc();
View Full Code Here

Examples of eu.planets_project.ifr.core.storage.impl.jcr.JcrDigitalObjectManagerImpl.removeAll()

    log.info("StorageBackingBean clearJcr()");
    try {
          JcrDigitalObjectManagerImpl dodm =
              (JcrDigitalObjectManagerImpl) JcrDigitalObjectManagerImpl.getInstance();
      log.info("StorageBackingBean clearJcr() remove all.");
         dodm.removeAll();
      this.loadTree();
    } catch (Exception e) {
      log.info("StorageBackingBean clearJcr() error: " + e.getMessage());     
    }
  }
View Full Code Here

Examples of factOrFiction.model.CardGroup.removeAll()

      } else if(getCurrentOperation() == DND.DROP_MOVE) {
        // need to remove all copies from sourceGroup
        // add to dragged cards
        if( sourceGroup != null ) {
          toInsert.addAll( sourceGroup.lookup( card ) );
          sourceGroup.removeAll( toInsert );
        }
      }
     
      if( location == LOCATION_BEFORE ) {
        targetGroup.addAllBefore( toInsert, targetCard );         
View Full Code Here

Examples of gnu.trove.THashSet.removeAll()

  private static void addSlicedPotentials (FactorGraph fromMdl, FactorGraph toMdl, Assignment assn, Map toSlicedMap)
  {
    Set inputVars = new THashSet (Arrays.asList (assn.getVars ()));
    Set remainingVars = new THashSet (fromMdl.variablesSet ());
    remainingVars.removeAll (inputVars);
    for (Iterator it = fromMdl.factorsIterator (); it.hasNext ();) {
      Factor ptl = (Factor) it.next ();
      Set theseVars = new THashSet (ptl.varSet ());
      theseVars.retainAll (remainingVars);
      Factor slicedPtl = ptl.slice (assn);
View Full Code Here

Examples of gnu.trove.TIntCollection.removeAll()

            if ( i > 5 ) {
                other[i - 1] = i + 1;
            }
        }
        assertTrue( "collection: " + keyset + ", should be modified. array: " +
                    Arrays.toString( other ), keyset.removeAll( other ) );
        assertEquals( 1, keyset.size() );
        for ( int i = 0; i < element_count; i++ ) {
            if ( i == 5 ) {
                assertTrue( keyset.contains( keys[i] ) );
                assertTrue( map.containsKey( keys[i] ) );
View Full Code Here

Examples of gnu.trove.TLongCollection.removeAll()

        assertEquals( map.size(), values.size() );
        assertFalse( values.isEmpty() );

        // test with a java.util.Map
        Set<Number> java_set = new HashSet<Number>();
        assertFalse( values.removeAll( java_set ) );
        assertEquals( vals.length, values.size() );
        assertEquals( vals.length, map.size() );
        for ( int i = 0; i < keys.length; i++ ) {
            assertTrue( values.contains( vals[i] ) );
            assertTrue( map.containsValue( vals[i] ) );
View Full Code Here

Examples of gnu.trove.list.TIntList.removeAll()

        }

        assertEquals( element_count, set.size() );
        assertEquals( element_count, list.size() );

        assertTrue( list.removeAll( set ) );
        assertTrue( list.isEmpty() );
        assertEquals( 0, list.size() );
        assertEquals( element_count, set.size() );
        for ( int i = 0; i < set.size(); i++ ) {
            assertTrue( set.contains( Integer.valueOf( i ) ) );
View Full Code Here

Examples of gnu.trove.set.TIntSet.removeAll()

        assertEquals( map.size(), set.size() );
        assertFalse( set.isEmpty() );

        // test with a java.util.Map
        Set<Number> java_set = new HashSet<Number>();
        assertFalse( set.removeAll( java_set ) );
        assertEquals( keys.length, set.size() );
        assertEquals( keys.length, map.size() );     
        for ( int i = 0; i < keys.length; i++ ) {
            assertTrue( set.contains( keys[i] ) );
            assertTrue( map.containsKey( keys[i] ) );
View Full Code Here

Examples of gnu.trove.set.hash.TIntHashSet.removeAll()

    }

    public static TIntHashSet getAllDummyIndicesT(Tensor tensor) {
        TIntHashSet set = new TIntHashSet();
        appendAllIndicesNamesT(tensor, set);
        set.removeAll(IndicesUtils.getIndicesNames(tensor.getIndices().getFree()));
        return set;
    }

    public static TIntHashSet getAllIndicesNamesT(Tensor... tensors) {
        TIntHashSet set = new TIntHashSet();
View Full Code Here

Examples of it.unimi.dsi.fastutil.longs.LongSet.removeAll()

    @Test
    public void testRemoveAll() {
        LongKeyDomain lks = LongKeyDomain.create(20, 25, 30, 42, 62);
        LongSet ls = lks.modifiableActiveSetView();
        List<Long> rm = Longs.asList(20, 25, 62, 30, 98, 1);
        assertThat(ls.removeAll(rm), equalTo(true));
        assertThat(ls, contains(42L));
        assertThat(lks.size(), equalTo(1));
    }

    @Test
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.