/** * <p>Gets the canonical name minus the package name from a <code>Class</code>.</p> * * @param cls the class to get the short name for. * @return the canonical name without the package name or an empty string * @since 2.4 */ public static String getShortCanonicalName(Class cls) { if (cls == null) { return StringUtils.EMPTY; } return getShortCanonicalName(cls.getName()); }
/** * <p>Gets the canonical name minus the package name for an <code>Object</code>.</p> * * @param object the class to get the short name for, may be null * @param valueIfNull the value to return if null * @return the canonical name of the object without the package name, or the null value * @since 2.4 */ public static String getShortCanonicalName(Object object, String valueIfNull) { if (object == null) { return valueIfNull; } return getShortCanonicalName(object.getClass().getName()); }
/** * <p>Gets the canonical name minus the package name from a <code>Class</code>.</p> * * @param cls the class to get the short name for. * @return the canonical name without the package name or an empty string * @since 2.4 */ public static String getShortCanonicalName(Class cls) { if (cls == null) { return StringUtils.EMPTY; } return getShortCanonicalName(cls.getName()); }
/** * <p>Gets the canonical name minus the package name from a <code>Class</code>.</p> * * @param cls the class to get the short name for. * @return the canonical name without the package name or an empty string * @since 2.4 */ public static String getShortCanonicalName(Class cls) { if (cls == null) { return StringUtils.EMPTY; } return getShortCanonicalName(cls.getName()); }
/** * <p>Gets the canonical name minus the package name from a <code>Class</code>.</p> * * @param cls the class to get the short name for. * @return the canonical name without the package name or an empty string * @since 2.4 */ public static String getShortCanonicalName(Class cls) { if (cls == null) { return StringUtils.EMPTY; } return getShortCanonicalName(cls.getName()); }
/** * <p>Gets the canonical name minus the package name from a <code>Class</code>.</p> * * @param cls the class to get the short name for. * @return the canonical name without the package name or an empty string * @since 2.4 */ public static String getShortCanonicalName(Class cls) { if (cls == null) { return StringUtils.EMPTY; } return getShortCanonicalName(cls.getName()); }
/** * <p>Gets the canonical name minus the package name from a <code>Class</code>.</p> * * @param cls the class to get the short name for. * @return the canonical name without the package name or an empty string * @since 2.4 */ public static String getShortCanonicalName(Class cls) { if (cls == null) { return StringUtils.EMPTY; } return getShortCanonicalName(cls.getName()); }
/** * <p>Gets the canonical name minus the package name for an <code>Object</code>.</p> * * @param object the class to get the short name for, may be null * @param valueIfNull the value to return if null * @return the canonical name of the object without the package name, or the null value * @since 2.4 */ public static String getShortCanonicalName(Object object, String valueIfNull) { if (object == null) { return valueIfNull; } return getShortCanonicalName(object.getClass().getName()); }
/** * <p>Gets the canonical name minus the package name for an <code>Object</code>.</p> * * @param object the class to get the short name for, may be null * @param valueIfNull the value to return if null * @return the canonical name of the object without the package name, or the null value * @since 2.4 */ public static String getShortCanonicalName(Object object, String valueIfNull) { if (object == null) { return valueIfNull; } return getShortCanonicalName(object.getClass().getName()); }
/** * <p>Gets the canonical name minus the package name for an <code>Object</code>.</p> * * @param object the class to get the short name for, may be null * @param valueIfNull the value to return if null * @return the canonical name of the object without the package name, or the null value * @since 2.4 */ public static String getShortCanonicalName(Object object, String valueIfNull) { if (object == null) { return valueIfNull; } return getShortCanonicalName(object.getClass().getName()); }
/** * <p>Gets the canonical name minus the package name for an <code>Object</code>.</p> * * @param object the class to get the short name for, may be null * @param valueIfNull the value to return if null * @return the canonical name of the object without the package name, or the null value * @since 2.4 */ public static String getShortCanonicalName(Object object, String valueIfNull) { if (object == null) { return valueIfNull; } return getShortCanonicalName(object.getClass().getName()); }
/** * <p>Gets the canonical name minus the package name for an <code>Object</code>.</p> * * @param object the class to get the short name for, may be null * @param valueIfNull the value to return if null * @return the canonical name of the object without the package name, or the null value * @since 2.4 */ public static String getShortCanonicalName(Object object, String valueIfNull) { if (object == null) { return valueIfNull; } return getShortCanonicalName(object.getClass().getName()); }