test_class.declarator: comparator = new BusinessObjectDataKeyComparator()
test_class.modifier: private
test_class.original_string: private BusinessObjectDataKeyComparator comparator = new BusinessObjectDataKeyComparator();
test_class.type: BusinessObjectDataKeyComparator
test_class.var_name: comparator
test_class.file: herd-code/herd-service/src/test/java/org/finra/herd/service/helper/BusinessObjectDataKeyComparatorTest.java
test_class.identifier: BusinessObjectDataKeyComparatorTest
test_case.body: @Test
      public void testCompareBusinessObjectFormatUsage() throws Exception
      {
          BusinessObjectDataKey businessObjectDataKey1 = new BusinessObjectDataKey();
          BusinessObjectDataKey businessObjectDataKey2 = new BusinessObjectDataKey();
  
          // "a" = "b"
          businessObjectDataKey1.setBusinessObjectFormatUsage("a");
          businessObjectDataKey2.setBusinessObjectFormatUsage("a");
          assertEquals(0, comparator.compare(businessObjectDataKey1, businessObjectDataKey2));
  
          // "a" < "b"
          businessObjectDataKey1.setBusinessObjectFormatUsage("a");
          businessObjectDataKey2.setBusinessObjectFormatUsage("b");
          assertEquals(-1, comparator.compare(businessObjectDataKey1, businessObjectDataKey2));
  
          // "b" > "a"
          assertEquals(1, comparator.compare(businessObjectDataKey2, businessObjectDataKey1));
      }
test_case.class_method_signature: BusinessObjectDataKeyComparatorTest.testCompareBusinessObjectFormatUsage()
test_case.full_signature: @Test public void testCompareBusinessObjectFormatUsage()
test_case.identifier: testCompareBusinessObjectFormatUsage
test_case.invocations: setBusinessObjectFormatUsage setBusinessObjectFormatUsage assertEquals compare setBusinessObjectFormatUsage setBusinessObjectFormatUsage assertEquals compare assertEquals compare
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testCompareBusinessObjectFormatUsage()
focal_class.declarator: serialVersionUID = -9075981888098266490L
focal_class.modifier: private static final
focal_class.original_string: private static final long serialVersionUID = -9075981888098266490L;
focal_class.type: long
focal_class.var_name: serialVersionUID
focal_class.file: herd-code/herd-service/src/main/java/org/finra/herd/service/helper/BusinessObjectDataKeyComparator.java
focal_class.identifier: BusinessObjectDataKeyComparator
focal_class.interfaces: implements Comparator<BusinessObjectDataKey>, Serializable
focal_class.class_method_signature: BusinessObjectDataKeyComparator.compare(final BusinessObjectDataKey data1, final BusinessObjectDataKey data2)
focal_class.full_signature: @Override public int compare(final BusinessObjectDataKey data1, final BusinessObjectDataKey data2)
focal_class.identifier: compare
focal_class.modifiers: @Override public
focal_class.parameters: (final BusinessObjectDataKey data1, final BusinessObjectDataKey data2)
focal_class.return: int
focal_class.signature: int compare(final BusinessObjectDataKey data1, final BusinessObjectDataKey data2)
focal_method.body: @Override
      public int compare(final BusinessObjectDataKey data1, final BusinessObjectDataKey data2)
      {
          if (data1 == null || data2 == null)
          {
              return data1 == null && data2 == null ? 0 : (data1 == null ? -1 : 1);
          }
          int result = ObjectUtils.compare(data1.getBusinessObjectDefinitionName(), data2.getBusinessObjectDefinitionName());
          if (result != 0)
          {
              return result;
          }
          result = ObjectUtils.compare(data1.getBusinessObjectFormatUsage(), data2.getBusinessObjectFormatUsage());
          if (result != 0)
          {
              return result;
          }
          result = ObjectUtils.compare(data1.getBusinessObjectFormatFileType(), data2.getBusinessObjectFormatFileType());
          if (result != 0)
          {
              return result;
          }
          result = ObjectUtils.compare(data1.getBusinessObjectFormatVersion(), data2.getBusinessObjectFormatVersion());
          if (result != 0)
          {
              return result;
          }
          result = ObjectUtils.compare(data1.getPartitionValue(), data2.getPartitionValue());
          if (result != 0)
          {
              return result;
          }
          return ObjectUtils.compare(data1.getBusinessObjectDataVersion(), data2.getBusinessObjectDataVersion());
      }
focal_method.class_method_signature: BusinessObjectDataKeyComparator.compare(final BusinessObjectDataKey data1, final BusinessObjectDataKey data2)
focal_method.full_signature: @Override public int compare(final BusinessObjectDataKey data1, final BusinessObjectDataKey data2)
focal_method.identifier: compare
focal_method.invocations: compare getBusinessObjectDefinitionName getBusinessObjectDefinitionName compare getBusinessObjectFormatUsage getBusinessObjectFormatUsage compare getBusinessObjectFormatFileType getBusinessObjectFormatFileType compare getBusinessObjectFormatVersion getBusinessObjectFormatVersion compare getPartitionValue getPartitionValue compare getBusinessObjectDataVersion getBusinessObjectDataVersion
focal_method.modifiers: @Override public
focal_method.parameters: (final BusinessObjectDataKey data1, final BusinessObjectDataKey data2)
focal_method.return: int
focal_method.signature: int compare(final BusinessObjectDataKey data1, final BusinessObjectDataKey data2)