public static boolean isGeometryClass(Class<?> x){
  if (x == null || GEOMETRY_CLASS == null) {
    return false;
  }
  return GEOMETRY_CLASS.isAssignableFrom(x);
}

public static boolean isGeometryClass ( Class < ? > x ) { if ( x == null || GEOMETRY_CLASS == null ) { return false ; } return GEOMETRY_CLASS . isAssignableFrom ( x ) ; }
check whether a given class matches the geometry class .
