Examples of compare()


Examples of eu.planets_project.tb.impl.services.wrappers.CompareWrapper.compare()

            ServiceDescription sd = compareServices.get(surl);
           
            if( sd.getType().equals(Compare.class.getCanonicalName()) ) {

                Compare chr = new CompareWrapper(surl);
                CompareResult cr = chr.compare( this.getDob1().getDob(), this.getDob2().getDob(), null);
                this.compareServiceReport = cr.getReport();

                me = this.createMeasurementEvent();
                if( me != null ) {
                    this.fillComparisonEvent(me, chr, cr);
View Full Code Here

Examples of gnu.testlet.runner.compare.ReportComparator.compare()

            // there was a previous run, let do the comparison !
           
            RunResult latestRunResult = new XMLReportParser().parse(latestRun.getReportXml());
           
            ReportComparator comparator = new ReportComparator(latestRunResult, newRunResult);
            RunComparison comparison = comparator.compare();
           
            // write comparison in html format
            ComparisonWriter writer = new HTMLComparisonWriter();
            writer.write(comparison, new File(newRun.getReportXml().getParentFile(), "comparison.html"));
           
View Full Code Here

Examples of gov.nasa.jpf.conformanceChecker.comparators.FieldInfoComparator.compare()

    FieldInfoComparator cmp = new FieldInfoComparator(mask);
    Arrays.sort(modelFields, cmp);
    Arrays.sort(stdFields, cmp);
   
    for(int i=0, j=0; i<modelFields.length && j<stdFields.length;) {
      int result = cmp.compare(modelFields[i], stdFields[j]);
      if(result == 0){
        i++;
        j++;
      } else if (result < 0) { // modelField < stdField
        signal(new Inconsistency(
View Full Code Here

Examples of hermes.browser.model.tree.HermesTreeNodeComparator.compare()

         for (; i < jmsRootNode.getChildCount(); i++)
         {
            HermesTreeNode node = (HermesTreeNode) jmsRootNode.getChildAt(i);

            if (comparator.compare(cfNode, node) < 0)
            {
               break;
            }
         }
         jmsRootNode.insert(cfNode, i);
View Full Code Here

Examples of htsjdk.variant.variantcontext.VariantContextComparator.compare()

            final CloseableIterator<VariantContext> variantIterator = in.iterator();
            if (variantIterator.hasNext()) {
                final VariantContext currentContext = variantIterator.next();
                if (lastContext != null) {
                    if (comparator.compare(lastContext, currentContext) >= 0) {
                        throw new IllegalArgumentException("First record in file " + f.getAbsolutePath() + " is not after first record in " +
                                "previous file " + lastFile.getAbsolutePath());
                    }
                }
View Full Code Here

Examples of hudson.model.DependencyGraph.compare()

                graph.getDownstreamDependencies(build.getProject()));
        // Sort topologically
        Collections.sort(downstreamProjects, new Comparator<Dependency>() {
            public int compare(Dependency lhs, Dependency rhs) {
                // Swapping lhs/rhs to get reverse sort:
                return graph.compare(rhs.getDownstreamProject(), lhs.getDownstreamProject());
            }
        });

        for (Dependency dep : downstreamProjects) {
            AbstractProject p = dep.getDownstreamProject();
View Full Code Here

Examples of infovis.Column.compare()

            final Column size = visualization.getVisualColumn(Visualization.VISUAL_SIZE);
            Permutation perm = visualization.getPermutation();
            perm.sort(new RowComparator() {
                public int compare(int row1, int row2) {
                    if (tree.isLeaf(row1) && tree.isLeaf(row2)) {
                        return size.compare(row1, row2);
                    }
                    else {
                        return order.compare(row1, row2);
                    }
                }
View Full Code Here

Examples of java.beans.Statement.MethodComparator.compare()

            MethodComparator comparator = new MethodComparator(methodName,
                    clazzes);
            Method chosenOne = matchMethods.get(0);
            matchMethods.remove(0);
            for (Method method : matchMethods) {
                int difference = comparator.compare(chosenOne, method);
                if (difference > 0) {
                    chosenOne = method;
                } else if (difference == 0) {
                    // if 2 methods have same relevance, throw exception
                    throw new NoSuchMethodException(Messages.getString(
View Full Code Here

Examples of java.text.Collator.compare()

              if (piece1.getId() == null) {
                return -1;
              } else if (piece2.getId() == null) {
                return 1;
              } else {
                return collator.compare(piece1.getId(), piece2.getId());
              }
            }
          };
      } else if (FurnitureLibrary.FURNITURE_NAME_PROPERTY.equals(propertyKey)) {
         furnitureComparator = new Comparator<CatalogPieceOfFurniture>() {
View Full Code Here

Examples of java.text.RuleBasedCollator.compare()

     * Class under test for int compare(java.lang.String, java.lang.String)
     */
    public void testCompareStringString() throws ParseException {
        String rule = "< c < b < a";
        RuleBasedCollator coll = new RuleBasedCollator(rule);
        assertEquals(-1, coll.compare("c", "a"));
    }

    public void testGetCollationKey() {
        RuleBasedCollator coll = (RuleBasedCollator) Collator
                .getInstance(Locale.GERMAN);
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.