Interface Parameter.Factory

Enclosing interface:
Parameter

public static interface Parameter.Factory

A factory for creating parameters.

Since:
1.6
Author:
Jeremy Kuhn
  • Method Summary

    Modifier and Type
    Method
    Description
    create(String name, T value)
    Creates a parameter with the specified name and value.
    default <T> Parameter
    create(String name, T value, Class<T> type)
    Creates a parameter with the specified name and value.
    create(String name, T value, Type type)
    Creates a parameter with the specified name and value.
  • Method Details

    • create

      <T> Parameter create(String name, T value)

      Creates a parameter with the specified name and value.

      Type Parameters:
      T - the value type
      Parameters:
      name - the name
      value - the value
      Returns:
      a new parameter
    • create

      default <T> Parameter create(String name, T value, Class<T> type)

      Creates a parameter with the specified name and value.

      Type Parameters:
      T - the value type
      Parameters:
      name - the name
      value - the value
      type - the value type
      Returns:
      a new parameter
    • create

      <T> Parameter create(String name, T value, Type type)

      Creates a parameter with the specified name and value.

      Type Parameters:
      T - the value type
      Parameters:
      name - the name
      value - the value
      type - the value type
      Returns:
      a new parameter