Examples of removeAll()


Examples of com.gs.collections.impl.bag.mutable.primitive.ShortHashBag.removeAll()

    }

    public ImmutableShortBag newWithoutAll(ShortIterable elements)
    {
        ShortHashBag bag = ShortHashBag.newBag(this.delegate);
        bag.removeAll(elements);
        return bag.toImmutable();
    }

    public int size()
    {
View Full Code Here

Examples of com.hazelcast.core.IList.removeAll()

        listTest.add("item0");
        listTest.add("item1");
        listTest.add("item2");


        assertTrue(list.removeAll(listTest));
        assertEquals(7, list.size());
        assertEquals("item3", list.get(0));
    }

    @Test(expected = NullPointerException.class)
View Full Code Here

Examples of com.hazelcast.core.IQueue.removeAll()

            queue.offer("item" + i);
        }
        ArrayList<String> list = new ArrayList<String>();
        queue.drainTo(list);
        queue.addAll(list);
        queue.removeAll(list);

        final LocalQueueStats stats = queue.getLocalQueueStats();
        AssertTask task = new AssertTask() {
            @Override
            public void run() throws Exception {
View Full Code Here

Examples of com.hazelcast.core.ISet.removeAll()

        Set removed = new HashSet();
        for (int i = 1; i <= 10; i++) {
            set.add("item" + i);
            removed.add("item" + i);
        }
        set.removeAll(removed);
        assertEquals(0, set.size());
    }

    //    ======================== iterator ==========================
    @Test
View Full Code Here

Examples of com.hp.hpl.jena.ontology.OntModel.removeAll()

          log.info("  Transferring: " +st.getSubject()+ " :: " +prd+ " :: " +st.getObject());
          newOntModel.add(ont_, prd, st.getObject());
        }
        else {
          log.info(" Removing pre-existing values for predicate: " +prd+ " because of new value " +newValue);
          newOntModel.removeAll(ont_, prd, null);
        }
      } 
     
     
      if ( ! createOntologyResult.isPreserveOriginalBaseNamespace() ) {
View Full Code Here

Examples of com.hp.hpl.jena.ontology.Ontology.removeAll()

      for ( String uri : values.keySet() ) {
        String value = values.get(uri);
        if ( value.trim().length() > 0 ) {
          Property prop = ResourceFactory.createProperty(uri);
          if ( doSet  &&  ont.getPropertyValue(prop) != null ) {
            ont.removeAll(prop);
          }
          ont.addProperty(prop, value.trim());
        }
      }
    }
View Full Code Here

Examples of com.hp.hpl.jena.rdf.model.Model.removeAll()

      if ( log.isDebugEnabled() ) {
        log.debug("removeAllStatementsFromSubject: " +subGraphRes);
      }

      model.removeAll(subGraphRes, null, null);
      try {
        _updateGraphsFile(model);
      }
      catch (Exception e) {
        log.error("removeAllStatementsFromSubject: Cannot write out to file " +graphsFile, e);
View Full Code Here

Examples of com.hp.hpl.jena.rdf.model.Property.removeAll()

    assertFalse( ((PelletInfGraph) model.getGraph()).getKB().isConsistent() );

    String ns = "http://www.example.org/test#";
    Property prop = model.getBaseModel().getProperty( ns + "ssn" );
    prop.removeAll( RDFS.range );
    model.rebind();

    assertTrue( ((PelletInfGraph) model.getGraph()).isConsistent() );
  }
View Full Code Here

Examples of com.hp.hpl.jena.rdf.model.ReifiedStatement.removeAll()

              while(rsit.hasNext()){
                ReifiedStatement reifst =  rsit.nextRS();
                Statement stmt = reifst.getProperty(propFilter);
               
                if(stmt != null && stmt.equals(tos)){
                  reifst.removeAll(propFilter);
                }
              }

              this.mapFilters.remove(fvp);
              this.mapFiltersFrom.remove(facetvalue);             
View Full Code Here

Examples of com.hp.hpl.jena.rdf.model.Resource.removeAll()

        Model origModel = ModelFactory.createModelForGraph(origGraph);
        editableModel.add(origModel);
        Resource locationResource = editableModel
            .createResource(locationString);
        locationResource.addProperty(RDF.type, DISCOBITS.InfoDiscoBit);
        locationResource.removeAll(DISCOBITS.infoBit);
        locationResource.addProperty(DISCOBITS.infoBit, infoBitResource);
        storeView.revokeGraph(origGraph);
        storeView.assertGraph(new FCAGraphImpl(editableModel));
      }
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.