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

io.dinject.javalin.generator.TypeHandler Maven / Gradle / Ivy

package io.dinject.javalin.generator;

/**
 * Handles type conversion for path and query parameters.
 */
interface TypeHandler {

  /**
   * Return the non-nullable type conversion method.
   */
  String asMethod();

  /**
   * Return the nullable type conversion method.
   */
  String toMethod();

  /**
   * The type for adding to imports.
   */
  String getImportType();

  /**
   * The short name.
   */
  String shortName();

  /**
   * Return true if this is a primitive type.
   */
  boolean isPrimitive();
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy