public static boolean isSupported(Class<?> type){
  return SUPPORTED_PRIMITIVE_TYPES.contains(type);
}

public static boolean isSupported ( Class < ? > type ) { return SUPPORTED_PRIMITIVE_TYPES . contains ( type ) ; }
return true if a field type can be written to a lucene document .
