Class ParameterTypeFactory

java.lang.Object
repast.simphony.parameter.ParameterTypeFactory

public class ParameterTypeFactory extends Object
Factory for ParameterTypes.
Author:
Nick Collier
  • Method Details

    • instance

      public static ParameterTypeFactory instance()
    • getParameterType

      public <T> ParameterType<T> getParameterType(Class<T> clazz)
      Gets a ParameterType for the specified class.
      Type Parameters:
      T - the type of the class
      Parameters:
      clazz - the class to get the type for
      Returns:
      the ParameterType.
    • addParameterType

      public <T> void addParameterType(Class<T> clazz, ParameterType<T> type)
      Adds a ParameterType for the specified class.
      Type Parameters:
      T - the class type
      Parameters:
      clazz - the class to add the type for
      type - the type to add