Java Class Name Format classToString(Class[] array, String separator, String defaultValue)

Here you can find the source of classToString(Class[] array, String separator, String defaultValue)

Description

class To String

License

LGPL

Declaration

private static String classToString(Class[] array, String separator, String defaultValue) 

Method Source Code

//package com.java2s;
//License from project: LGPL 

public class Main {
    private static String classToString(Class[] array, String separator, String defaultValue) {
        if (null == array) {
            return defaultValue;
        } else {/*from w  w w  . j  a va2 s  . c  o  m*/
            StringBuilder result = new StringBuilder();
            for (int i = 0; i < array.length; i++) {
                if (result.length() > 0) {
                    result.append(separator);
                }
                result.append(array[i].getName());
            }
            return result.toString();
        }
    }
}

Related

  1. classToResourceName(Class clazz)
  2. classToSignatureIdentifier(Class clazz)
  3. classToSlashed(String className)
  4. classToString(Class c)
  5. classToString(Class clazz)
  6. classToString(Class[] cArr)
  7. classToString(int clasS)
  8. classToStringRepresentation(Class c)
  9. classToXMLName(Class klass)