public static boolean isOrSubtype ( final Class < ? extends Entity > descendant , final Class < ? extends Entity > ancestor ) { return ancestor . isAssignableFrom ( descendant ) ; }
Checks if the specified type is equal to or a descendant from the specified ancestor type .