All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.hotrodorm.hotrod.utils.CUtil Maven / Gradle / Ivy

package org.hotrodorm.hotrod.utils;

public class CUtil {

  public static String renderObjectClass(final Object obj) {
    if (obj == null) {
      return null;
    }
    return renderClass(obj.getClass());
  }

  public static String renderClass(final Class c) {
    if (c == null) {
      return null;
    }
    Class componentType = c.getComponentType();
    // System.out.println("------> " + componentType);
    if (componentType == null) {
      return c.getName();
    } else {
      return CUtil.renderClass(componentType) + "[]";
    }
  }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy