test_class.file: xlog-android/src/test/java/com/github/promeg/xlog_android/lib/StringsTest.java
test_class.identifier: StringsTest
test_case.body: @Test
      public void testCollectionToString() {
          List<Integer> list = new ArrayList<Integer>();
          list.add(1);
          list.add(2);
          list.add(3);
  
          String result = Strings.toString(list);
  
          String expected = "[1, 2, 3]";
  
          assertThat(result, is(expected));
      }
test_case.class_method_signature: StringsTest.testCollectionToString()
test_case.full_signature: @Test public void testCollectionToString()
test_case.identifier: testCollectionToString
test_case.invocations: add add add toString assertThat is
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testCollectionToString()
focal_class.declarator: LOG_CONTENT_MAX_LENGTH = 1000
focal_class.modifier: static final
focal_class.original_string: static final int LOG_CONTENT_MAX_LENGTH = 1000;
focal_class.type: int
focal_class.var_name: LOG_CONTENT_MAX_LENGTH
focal_class.file: xlog-android/src/main/java/com/github/promeg/xlog_android/lib/Strings.java
focal_class.identifier: Strings
focal_class.class_method_signature: Strings.toString(Object obj)
focal_class.full_signature: static String toString(Object obj)
focal_class.identifier: toString
focal_class.modifiers: static
focal_class.parameters: (Object obj)
focal_class.return: String
focal_class.signature: String toString(Object obj)
focal_class.class_method_signature: Strings.printableToString(String string)
focal_class.full_signature: private static String printableToString(String string)
focal_class.identifier: printableToString
focal_class.modifiers: private static
focal_class.parameters: (String string)
focal_class.return: String
focal_class.signature: String printableToString(String string)
focal_class.class_method_signature: Strings.collectionToString(Collection collection)
focal_class.full_signature: private static String collectionToString(Collection collection)
focal_class.identifier: collectionToString
focal_class.modifiers: private static
focal_class.parameters: (Collection collection)
focal_class.return: String
focal_class.signature: String collectionToString(Collection collection)
focal_class.class_method_signature: Strings.arrayToString(Class<?> cls, Object obj)
focal_class.full_signature: private static String arrayToString(Class<?> cls, Object obj)
focal_class.identifier: arrayToString
focal_class.modifiers: private static
focal_class.parameters: (Class<?> cls, Object obj)
focal_class.return: String
focal_class.signature: String arrayToString(Class<?> cls, Object obj)
focal_class.class_method_signature: Strings.byteArrayToString(byte[] bytes)
focal_class.full_signature: private static String byteArrayToString(byte[] bytes)
focal_class.identifier: byteArrayToString
focal_class.modifiers: private static
focal_class.parameters: (byte[] bytes)
focal_class.return: String
focal_class.signature: String byteArrayToString(byte[] bytes)
focal_class.class_method_signature: Strings.byteToString(Byte b)
focal_class.full_signature: private static String byteToString(Byte b)
focal_class.identifier: byteToString
focal_class.modifiers: private static
focal_class.parameters: (Byte b)
focal_class.return: String
focal_class.signature: String byteToString(Byte b)
focal_class.class_method_signature: Strings.arrayToString(Object[] array)
focal_class.full_signature: private static String arrayToString(Object[] array)
focal_class.identifier: arrayToString
focal_class.modifiers: private static
focal_class.parameters: (Object[] array)
focal_class.return: String
focal_class.signature: String arrayToString(Object[] array)
focal_class.class_method_signature: Strings.arrayToString(Object[] array, StringBuilder builder, Set<Object[]> seen)
focal_class.full_signature: private static void arrayToString(Object[] array, StringBuilder builder, Set<Object[]> seen)
focal_class.identifier: arrayToString
focal_class.modifiers: private static
focal_class.parameters: (Object[] array, StringBuilder builder, Set<Object[]> seen)
focal_class.return: void
focal_class.signature: void arrayToString(Object[] array, StringBuilder builder, Set<Object[]> seen)
focal_class.class_method_signature: Strings.Strings()
focal_class.full_signature: private  Strings()
focal_class.identifier: Strings
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.signature:  Strings()
focal_method.body: private static String collectionToString(Collection collection) {
          StringBuilder builder = new StringBuilder("[");
          int count = 0;
          for (Object element : collection) {
              if (builder.length() > LOG_CONTENT_MAX_LENGTH) {
                  return builder.append("] (" + count + ":" + collection.size() + ")").toString();
              }
              if (count > 0) {
                  builder.append(", ");
              }
              count++;
              if (element == null) {
                  builder.append("null");
              } else {
                  Class elementClass = element.getClass();
                  if (elementClass.isArray() && elementClass.getComponentType() == Object.class) {
                      Object[] arrayElement = (Object[]) element;
                      arrayToString(arrayElement, builder, new HashSet<Object[]>());
                  } else {
                      builder.append(toString(element));
                  }
              }
          }
          return builder.append(']').toString();
      }
focal_method.class_method_signature: Strings.collectionToString(Collection collection)
focal_method.full_signature: private static String collectionToString(Collection collection)
focal_method.identifier: collectionToString
focal_method.invocations: length toString append size append append getClass isArray getComponentType arrayToString append toString toString append
focal_method.modifiers: private static
focal_method.parameters: (Collection collection)
focal_method.return: String
focal_method.signature: String collectionToString(Collection collection)