All Downloads are FREE. Search and download functionalities are using the official Maven repository.

ai.h2o.mojos.runtime.frame.StringConverter Maven / Gradle / Ivy

There is a newer version: 2.8.7.1
Show newest version
package ai.h2o.mojos.runtime.frame;

/**
 * `StringConverter` is an interface for converting `String` values into a {@link MojoColumn.Type}.
 */
public interface StringConverter {

  /**
   * Convert a `String` into the designated output type.
   * @param s The `String` to convert
   * @param outputType The type into which `s` should be converted
   * @return The converted Object with a type corresponding to `outputType`
   */
  Object convert(String s, MojoColumn.Type outputType);
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy