/** * @return fully qualified class name last element */ public static String fqcnLastElement(String fqcn) { return ClassUtils.fqcnLastElement( fqcn ); }
private static boolean hasAllMethods(Class cl, Method[] methods, boolean cl_as_supertype) { for (int i = 0, len = methods.length; i < len; ++i) if ( !containsMethod( cl, methods[i], cl_as_supertype) ) return false; return true; }
public static String simpleClassName( Class cl ) { return ClassUtils.simpleClassName( cl ); }
public static String resolvableTypeName( Class type, String[] importPkgs, String[] importClasses ) throws ClassNotFoundException { String simpleName = simpleClassName( type ); try { classForSimpleName( simpleName, importPkgs, importClasses ); } catch ( AmbiguousClassNameException e ) { return type.getName(); } return simpleName; }
public static Class forName(String fqcnOrPrimitive ) throws ClassNotFoundException { Class out = classForPrimitive( fqcnOrPrimitive ); if (out == null) out = Class.forName( fqcnOrPrimitive ); return out; }
public static Class forName( String fqOrSimple, String[] importPkgs, String[] importClasses ) throws AmbiguousClassNameException, ClassNotFoundException { try { return Class.forName( fqOrSimple ); } catch ( ClassNotFoundException e ) { return classForSimpleName( fqOrSimple, importPkgs, importClasses ); } }
public static CachedStore synchronizedCachedStore(CachedStore orig) { return (CachedStore) Synchronizer.createSynchronizedWrapper( orig ); }
public static boolean hasAllMethodsAsSupertype(Class cl, Method[] methods) { return hasAllMethods( cl, methods, true ); }
/** * @return fully qualified class name last element */ public static String fqcnLastElement(String fqcn) { return ClassUtils.fqcnLastElement( fqcn ); }
public static String simpleClassName( Class cl ) { return ClassUtils.simpleClassName( cl ); }
public static Class forName(String fqcnOrPrimitive ) throws ClassNotFoundException { Class out = classForPrimitive( fqcnOrPrimitive ); if (out == null) out = Class.forName( fqcnOrPrimitive ); return out; }
public static Class forName( String fqOrSimple, String[] importPkgs, String[] importClasses ) throws AmbiguousClassNameException, ClassNotFoundException { try { return Class.forName( fqOrSimple ); } catch ( ClassNotFoundException e ) { return classForSimpleName( fqOrSimple, importPkgs, importClasses ); } }
public static boolean containsMethodAsSupertype(Class cl, Method m) { return containsMethod( cl, m, true ); }
public static TweakableCachedStore synchronizedTweakableCachedStore(TweakableCachedStore orig) { return (TweakableCachedStore) Synchronizer.createSynchronizedWrapper( orig ); }
public static boolean hasAllMethodsAsSubtype(Class cl, Method[] methods) { return hasAllMethods( cl, methods, false ); }
/** * @return fully qualified class name last element */ public static String fqcnLastElement(String fqcn) { return ClassUtils.fqcnLastElement( fqcn ); }
public static String simpleClassName( Class cl ) { return ClassUtils.simpleClassName( cl ); }
public static Class forName(String fqcnOrPrimitive ) throws ClassNotFoundException { Class out = classForPrimitive( fqcnOrPrimitive ); if (out == null) out = Class.forName( fqcnOrPrimitive ); return out; }
public static boolean containsMethodAsSubtype(Class cl, Method m) { return containsMethod( cl, m, false ); }
public static WritableCachedStore synchronizedWritableCachedStore(WritableCachedStore orig) { return (WritableCachedStore) Synchronizer.createSynchronizedWrapper( orig ); }