test_class.declarator: caseSensitive = true
test_class.modifier: private final
test_class.original_string: private final boolean caseSensitive = true;
test_class.type: boolean
test_class.var_name: caseSensitive
test_class.file: shardingsphere-features/shardingsphere-sharding/shardingsphere-sharding-merge/src/test/java/org/apache/shardingsphere/sharding/merge/dql/orderby/CompareUtilTest.java
test_class.identifier: CompareUtilTest
test_case.body: @Test
      public void assetCompareToStringWithCaseInsensitive() {
          assertThat(CompareUtil.compareTo("A", "a", OrderDirection.DESC, OrderDirection.ASC, !caseSensitive), is(0));
      }
test_case.class_method_signature: CompareUtilTest.assetCompareToStringWithCaseInsensitive()
test_case.full_signature: @Test public void assetCompareToStringWithCaseInsensitive()
test_case.identifier: assetCompareToStringWithCaseInsensitive
test_case.invocations: assertThat compareTo is
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void assetCompareToStringWithCaseInsensitive()
focal_class.file: shardingsphere-features/shardingsphere-sharding/shardingsphere-sharding-merge/src/main/java/org/apache/shardingsphere/sharding/merge/dql/orderby/CompareUtil.java
focal_class.identifier: CompareUtil
focal_class.class_method_signature: CompareUtil.compareTo(final Comparable thisValue, final Comparable otherValue, final OrderDirection orderDirection, final OrderDirection nullOrderDirection, final boolean caseSensitive)
focal_class.full_signature: @SuppressWarnings({"unchecked", "rawtypes"}) public static int compareTo(final Comparable thisValue, final Comparable otherValue, final OrderDirection orderDirection, final OrderDirection nullOrderDirection, final boolean caseSensitive)
focal_class.identifier: compareTo
focal_class.modifiers: @SuppressWarnings({"unchecked", "rawtypes"}) public static
focal_class.parameters: (final Comparable thisValue, final Comparable otherValue, final OrderDirection orderDirection, final OrderDirection nullOrderDirection, final boolean caseSensitive)
focal_class.return: int
focal_class.signature: int compareTo(final Comparable thisValue, final Comparable otherValue, final OrderDirection orderDirection, final OrderDirection nullOrderDirection, final boolean caseSensitive)
focal_class.class_method_signature: CompareUtil.compareToCaseInsensitiveString(final String thisValue, final String otherValue, final OrderDirection orderDirection)
focal_class.full_signature: private static int compareToCaseInsensitiveString(final String thisValue, final String otherValue, final OrderDirection orderDirection)
focal_class.identifier: compareToCaseInsensitiveString
focal_class.modifiers: private static
focal_class.parameters: (final String thisValue, final String otherValue, final OrderDirection orderDirection)
focal_class.return: int
focal_class.signature: int compareToCaseInsensitiveString(final String thisValue, final String otherValue, final OrderDirection orderDirection)
focal_method.body: @SuppressWarnings({"unchecked", "rawtypes"})
      public static int compareTo(final Comparable thisValue, final Comparable otherValue, final OrderDirection orderDirection, final OrderDirection nullOrderDirection, final boolean caseSensitive) {
          if (null == thisValue && null == otherValue) {
              return 0;
          }
          if (null == thisValue) {
              return orderDirection == nullOrderDirection ? -1 : 1;
          }
          if (null == otherValue) {
              return orderDirection == nullOrderDirection ? 1 : -1;
          }
          if (!caseSensitive && thisValue instanceof String && otherValue instanceof String) {
              return compareToCaseInsensitiveString((String) thisValue, (String) otherValue, orderDirection);
          }
          return OrderDirection.ASC == orderDirection ? thisValue.compareTo(otherValue) : -thisValue.compareTo(otherValue);
      }
focal_method.class_method_signature: CompareUtil.compareTo(final Comparable thisValue, final Comparable otherValue, final OrderDirection orderDirection, final OrderDirection nullOrderDirection, final boolean caseSensitive)
focal_method.full_signature: @SuppressWarnings({"unchecked", "rawtypes"}) public static int compareTo(final Comparable thisValue, final Comparable otherValue, final OrderDirection orderDirection, final OrderDirection nullOrderDirection, final boolean caseSensitive)
focal_method.identifier: compareTo
focal_method.invocations: compareToCaseInsensitiveString compareTo compareTo
focal_method.modifiers: @SuppressWarnings({"unchecked", "rawtypes"}) public static
focal_method.parameters: (final Comparable thisValue, final Comparable otherValue, final OrderDirection orderDirection, final OrderDirection nullOrderDirection, final boolean caseSensitive)
focal_method.return: int
focal_method.signature: int compareTo(final Comparable thisValue, final Comparable otherValue, final OrderDirection orderDirection, final OrderDirection nullOrderDirection, final boolean caseSensitive)