test_class.declarator: builder = DefaultChemObjectBuilder.getInstance()
test_class.modifier: private
test_class.original_string: private IChemObjectBuilder builder = DefaultChemObjectBuilder.getInstance();
test_class.type: IChemObjectBuilder
test_class.var_name: builder
test_class.file: descriptor/fingerprint/src/test/java/org/openscience/cdk/fingerprint/SimpleAtomComparatorTest.java
test_class.identifier: SimpleAtomComparatorTest
test_case.body: @Test
      public void testCompare_DifferentHybridization() throws Exception {
  
          SimpleAtomComparator comparator = new SimpleAtomComparator();
  
          IAtom a1 = builder.newInstance(IAtom.class, "C");
          IAtom a2 = builder.newInstance(IAtom.class, "C");
  
          a1.setHybridization(IAtomType.Hybridization.SP2);
          a2.setHybridization(IAtomType.Hybridization.SP3);
  
          Assert.assertEquals("Atom 2 should have priority", -1, comparator.compare(a1, a2));
  
      }
test_case.class_method_signature: SimpleAtomComparatorTest.testCompare_DifferentHybridization()
test_case.full_signature: @Test public void testCompare_DifferentHybridization()
test_case.identifier: testCompare_DifferentHybridization
test_case.invocations: newInstance newInstance setHybridization setHybridization assertEquals compare
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testCompare_DifferentHybridization()
focal_class.declarator: serialVersionUID = 2345252069991872083L
focal_class.modifier: private static final
focal_class.original_string: private static final long serialVersionUID = 2345252069991872083L;
focal_class.type: long
focal_class.var_name: serialVersionUID
focal_class.file: descriptor/fingerprint/src/main/java/org/openscience/cdk/fingerprint/SimpleAtomComparator.java
focal_class.identifier: SimpleAtomComparator
focal_class.interfaces: implements Comparator<IAtom>, Serializable
focal_class.class_method_signature: SimpleAtomComparator.compare(IAtom o1, IAtom o2)
focal_class.full_signature: @Override public int compare(IAtom o1, IAtom o2)
focal_class.identifier: compare
focal_class.modifiers: @Override public
focal_class.parameters: (IAtom o1, IAtom o2)
focal_class.return: int
focal_class.signature: int compare(IAtom o1, IAtom o2)
focal_method.body: @Override
      public int compare(IAtom o1, IAtom o2) {
          if (o1.getSymbol().equalsIgnoreCase(o2.getSymbol())) {
              if (o1.getHybridization() != null && o2.getHybridization() != null) {
                  return o1.getHybridization().compareTo(o2.getHybridization());
              }
              return 0;
          }
          return 10 * o1.getSymbol().compareToIgnoreCase(o2.getSymbol());
      }
focal_method.class_method_signature: SimpleAtomComparator.compare(IAtom o1, IAtom o2)
focal_method.full_signature: @Override public int compare(IAtom o1, IAtom o2)
focal_method.identifier: compare
focal_method.invocations: equalsIgnoreCase getSymbol getSymbol getHybridization getHybridization compareTo getHybridization getHybridization compareToIgnoreCase getSymbol getSymbol
focal_method.modifiers: @Override public
focal_method.parameters: (IAtom o1, IAtom o2)
focal_method.return: int
focal_method.signature: int compare(IAtom o1, IAtom o2)