Examples of compare()


Examples of org.jruby.RubyArray.compare()

                RubyHash hash = (RubyHash) a;
                return hash.compare(context, method, b);
            }
            else if (a instanceof RubyArray) {
                RubyArray array = (RubyArray) a;
                return array.compare(context, method, b);
            }
            else {
                return invokedynamic(context, a, method, b);
            }
        } finally {
View Full Code Here

Examples of org.jruby.RubyHash.compare()

                seen.add(pair);
            }

            if (a instanceof RubyHash) {
                RubyHash hash = (RubyHash) a;
                return hash.compare(context, method, b);
            }
            else if (a instanceof RubyArray) {
                RubyArray array = (RubyArray) a;
                return array.compare(context, method, b);
            }
View Full Code Here

Examples of org.lealone.engine.Database.compare()

            return true;
        }
        Database db = session.getDatabase();
        if (database.getMode().lowerCaseIdentifiers) {
            Value v = ValueStringIgnoreCase.get(value);
            if (indexFrom.equals(indexTo) && db.compare(v, indexFrom) != 0) {
                return false;
            }
        } else {
            Value v = ValueString.get(value);
            if (indexFrom != null && db.compare(v, indexFrom) < 0) {
View Full Code Here

Examples of org.lealone.result.SortOrder.compare()

                final SortOrder sortOrder = sort;
                Collections.sort(list, new Comparator<Value>() {
                    public int compare(Value v1, Value v2) {
                        Value[] a1 = ((ValueArray) v1).getList();
                        Value[] a2 = ((ValueArray) v2).getList();
                        return sortOrder.compare(a1, a2);
                    }
                });
            }
            StatementBuilder buff = new StatementBuilder();
            String sep = separator == null ? "," : separator.getValue(session).getString();
View Full Code Here

Examples of org.ocpsoft.prettytime.units.TimeUnitComparator.compare()

   @Test
   public void testComparingOrder() throws Exception
   {
      TimeUnitComparator comparator = new TimeUnitComparator();
      assertEquals(-1, comparator.compare(new Hour(), new Day()));
   }

}
View Full Code Here

Examples of org.olat.core.commons.modules.bc.meta.MetaTitleComparator.compare()

  public int compare(MetaTagged one, MetaTagged two) {
    MetaInfo that = one.getMetaInfo();
    MetaInfo other = two.getMetaInfo();
    // Delegate!
    MetaTitleComparator comparator = new MetaTitleComparator(collator);
    return comparator.compare(that, other);
  }
}
View Full Code Here

Examples of org.openbravo.erpCommon.modules.VersionUtility.VersionComparator.compare()

        }
        // check dependencies for included modules recursively
        checkDependencyVersion(dependentModule.getDependentModule(), result);
      } else {
        VersionUtility.VersionComparator vc = new VersionComparator();
        if (vc.compare(depDefinedVersion, depActualVersion) == 1) {
          result.addError(SystemValidationType.MODULE_ERROR, module.getName()
              + " defines dependency on " + dependentModule.getDependentModule().getName()
              + " start version " + depDefinedVersion + ", but actual version in DB is "
              + depActualVersion);
        } else if (dependentModule.getLastVersion() == null
View Full Code Here

Examples of org.openpixi.pixi.physics.util.ParticleComparator.compare()

    sequentialSimulation.run();
    openCLSimulation.run();

    ParticleComparator comparator = new ParticleComparator();
    comparator.compare(sequentialSimulation.particles, openCLSimulation.particles);
  }
}
View Full Code Here

Examples of org.openpixi.pixi.physics.util.ResultsComparator.compare()

      Simulation localSimulation = new Simulation(stt);
      localSimulation.run();

      Master master = n.getMaster();
      ResultsComparator comparator = new ResultsComparator();
      comparator.compare(
          localSimulation.particles, master.getFinalParticles(),
          localSimulation.grid, master.getFinalGrid());
    }
  }
}
View Full Code Here

Examples of org.openstreetmap.josm.data.osm.NodePositionComparator.compare()

                                boolean insertInSeg1 = false;
                                boolean insertInSeg2 = false;
                                //find if the intersection point is at end point of one of the segments, if so use that point

                                //segment 1
                                if (coordsComparator.compare(newNode, seg1Node1) == 0) {
                                    intNode = seg1Node1;
                                } else if (coordsComparator.compare(newNode, seg1Node2) == 0) {
                                    intNode = seg1Node2;
                                } else {
                                    insertInSeg1 = true;
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.