gatk-3.8/java/src/org/broadinstitute/sting/utils/JVMUtils.java

31 lines
812 B
Java
Executable File

package org.broadinstitute.sting.utils;
import java.lang.reflect.Modifier;
/**
* Created by IntelliJ IDEA.
* User: hanna
* Date: Mar 30, 2009
* Time: 5:38:05 PM
*
* A set of static utility methods for determining information about this runtime environment.
* Introspects classes, loads jars, etc.
*/
public class JVMUtils {
/**
* Constructor access disallowed...static utility methods only!
*/
private JVMUtils() { }
/**
* Is the specified class a concrete implementation of baseClass?
* @param clazz Class to check.
* @return True if clazz is concrete. False otherwise.
*/
public static boolean isConcrete( Class clazz ) {
return !Modifier.isAbstract(clazz.getModifiers()) &&
!Modifier.isInterface(clazz.getModifiers());
}
}