Package java.util

Examples of java.util.HashMap.values()


        if (instance.getType() == TYPE_MC) {
          // if does not contain any ANDs, assume only one combination
          // of answers is possible (which sets points by a setvar action="Set")
          if (resprocessingXML.selectNodes(".//setvar[@action='Add']").size() == 0) {
            instance.setSingleCorrect(true);
            Collection values = points.values();
            if (values.size() > 0) instance.setSingleCorrectScore(((Float) (values.iterator().next())).floatValue());
          } else {
            instance.setSingleCorrect(false);
          }
        } else if (instance.getType() == TYPE_SC) {
View Full Code Here


          } else {
            instance.setSingleCorrect(false);
          }
        } else if (instance.getType() == TYPE_SC) {
          instance.setSingleCorrect(true);
          Collection values = points.values();
          if (values.size() > 0) {
            instance.setSingleCorrectScore(((Float) (values.iterator().next())).floatValue());
          } else {
            instance.setSingleCorrect(false);
          }
View Full Code Here

 
      // if does not contain any ANDs, assume only one combination
      // of answers is possible (which sets points by a setvar action="Set")
      if (resprocessingXML.selectNodes(".//setvar[@action='Add']").size() == 0) {
        instance.setSingleCorrect(true);
        Collection values = points.values();
        if (values.size() > 0)
          instance.setSingleCorrectScore(((Float)(values.iterator().next())).floatValue());
      } else {
        instance.setSingleCorrect(false);
      }
View Full Code Here

  }

  // Copy results
  int size = resultsByIDs.size();
  EvaluationResult[] evalResults = new EvaluationResult[size];
  Iterator results = resultsByIDs.values().iterator();
  for (int i = 0; i < size; i++) {
    evalResults[i] = (EvaluationResult)results.next();
  }

  return evalResults;
View Full Code Here

    Map collector = new HashMap();
    // let's get to the top of the hierarchy and then walk down ...
    // recording abstract methods then removing
    // them if they get defined further down the hierarchy
    getOutstandingAbstractMethodsHelper(type, collector);
    return collector.values();
  }

  // We are trying to determine abstract methods left over at the bottom of a
  // hierarchy that have not been
  // concretized.
View Full Code Here

    matches = indexMatches;
  }
  int remainingWorkingCopiesSize = workingCopyDocuments.size();
  if (remainingWorkingCopiesSize != 0) {
    System.arraycopy(matches, 0, matches = new SearchDocument[length+remainingWorkingCopiesSize], 0, length);
    Iterator iterator = workingCopyDocuments.values().iterator();
    int index = length;
    while (iterator.hasNext()) {
      matches[index++] = (SearchDocument) iterator.next();
    }
  }
View Full Code Here

        }

        collectAbstractMethods(methods, super_class);
        removeImplementedMethods(methods, super_class);

        Collection c = methods.values();
        return (MethodRef[]) c.toArray(new MethodRef[c.size()]);
    }

    /**
     * Collect all methods to be generated. We'll only collect each method once;
View Full Code Here

    {
        Map m = new HashMap();
        m.putAll( transitiveDependencies );
        m.putAll( parentDependencies );
        m.putAll( dependencies );
        return m.values();
    }

    public List getChain()
    {
        return chain;
View Full Code Here

    public Collection getManagedDependenciesCollection()
    {
        Map m = new HashMap();
        m.putAll( managedDependencies );
        return m.values();
    }

    public String toString()
    {
        return "Model[" + getId() + "]";
View Full Code Here

            // if this is an output message then we have to set the
            // return type if exists
            if (isOutMessage) {
                if (partsMap.size() > 0) {
                    if (partsMap.size() == 1) {
                        part = (Part) partsMap.values().iterator().next();
                        // change the name of this part
                        // this is the return type and its name should be result
                        // part.setName("result");
                        addPartToElement(part,
                                         document,
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.