Examples of entrySet()


Examples of org.waveprotocol.wave.model.document.operation.impl.AttributesImpl.entrySet()

      E node = substrate.asElement(currentContainer.getValue());
      Attributes oldAttributes = new AttributesImpl(substrate.getAttributes(node));
      // Iterate over oldAttributes here, not attributeMap, since we are modifying
      // the map underlying the latter.
      for (Map.Entry<String, String> attribute : oldAttributes.entrySet()) {
        String key = attribute.getKey();
        if (!newAttrs.containsKey(key)) {
          substrate.removeAttribute(node, attribute.getKey());
        }
      }
View Full Code Here

Examples of ptolemy.backtrack.util.java.util.Map.entrySet()

        for (int i = 0; i < iteration; i++) {
            map.put(new Integer(i), new Integer(iteration - i));
        }

        long handle3 = map.$GET$CHECKPOINT().createCheckpoint();
        map.entrySet().clear();
        map.$GET$CHECKPOINT().rollback(handle2, true);
        System.out.println(map);

        // Test removal with iterator().
        for (int i = 0; i < iteration; i++) {
View Full Code Here

Examples of quickml.data.PredictionMap.entrySet()

    private PredictionMap getPredictionForNClasses(AttributesMap attributes) {
        PredictionMap sumsByClassification = new PredictionMap(new HashMap<Serializable, Double>());
        for (Tree tree : trees) {
            final PredictionMap treeProbs = tree.predict(attributes);
            for (Map.Entry<Serializable, Double> tpe : treeProbs.entrySet()) {
                Double sum = sumsByClassification.get(tpe.getKey());
                if (sum == null) sum = 0.0;
                sum += tpe.getValue();
                sumsByClassification.put(tpe.getKey(), sum);
            }
View Full Code Here

Examples of railo.runtime.type.Struct.entrySet()

   * @param id
   * @return matching thread or null
   */
  private FDThreadImpl getByNativeIdentifier(String name,CFMLFactoryImpl factory,String id) {
    Struct pcs = factory.getRunningPageContexts();
    Iterator it = pcs.entrySet().iterator();
    PageContextImpl pc;
   
    while(it.hasNext()){
      pc=(PageContextImpl) ((Entry) it.next()).getValue();
      if(equals(pc,id)) return new FDThreadImpl(this,factory,name,pc);
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.