public final class ProjectUtil
extends java.lang.Object
Modifier | Constructor and Description |
---|---|
private |
ProjectUtil()
Prevent instance creation of this utility class.
|
Modifier and Type | Method and Description |
---|---|
static boolean |
classExists(java.lang.String clazz)
Checks if a certain class (supplied as
String ) exists within the project. |
static <T> T |
convertString(java.lang.String source,
java.lang.Class<T> clazz)
Converts a string to a certain class, if possible.
|
private ProjectUtil()
public static boolean classExists(java.lang.String clazz)
String
) exists within the project.clazz
- The class as String
which shall be checked.true
if the class exists, otherwise false
.public static <T> T convertString(java.lang.String source, java.lang.Class<T> clazz)
T
- The class to which the string shall be converted.source
- The String
which shall be converted.clazz
- The class type to which the String
shall be converted.