
org.broadinstitute.barclay.utils.JVMUtils Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of barclay Show documentation
Show all versions of barclay Show documentation
Development on Barclay command line parsing and documentation utilities
The newest version!
package org.broadinstitute.barclay.utils;
import java.lang.reflect.Modifier;
public class 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());
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy