Package com.spun.util
Class ClassUtils
java.lang.Object
com.spun.util.ClassUtils
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <T> Tstatic Filestatic Filestatic FilegetAdjacentFile(Class<?> aClass, String relativeFileName) static StringgetClassName(Class<?> clazz) static StringgetClassPath(Class<?> clazz) static <T> Class<?>getGreatestCommonBaseType(List<T> list) static <T> ClassgetGreatestCommonInterface(List<T> list) Greatest Common Interface is the shared interface with the most methods.static Methodstatic FilegetSourceDirectory(Class<?> clazz) static FilegetSourceDirectory(Class<?> clazz, String fileName) static FilegetSourceDirectory(Class<?> clazz, Function1<String, String> createLastFileName) static Class<?>getWrapperClass(Class<?> primativeType) static booleanstatic booleanisPrimitiveField(Field field) static booleanIsPublicStatic(Field field)
-
Constructor Details
-
ClassUtils
public ClassUtils()
-
-
Method Details
-
getClassName
-
getClassPath
-
getWrapperClass
-
hasMethod
-
getSourceDirectory
-
getSourceDirectory
-
getSourceDirectory
-
find
-
find2
-
create
-
IsPublicStatic
-
isPrimitiveField
-
getMethod
-
getGreatestCommonBaseType
-
getGreatestCommonInterface
Greatest Common Interface is the shared interface with the most methods. In case of a tie, it's the first declared in the first item of the list. -
getAdjacentFile
-