Interface TypeParameterizedCreator

All Known Subinterfaces:
AbstractMethodCreator, AnonymousClassCreator, ClassCreator, ConstructorCreator, ExecutableCreator, InstanceExecutableCreator, InstanceMethodCreator, InterfaceCreator, MethodCreator, StaticExecutableCreator, StaticMethodCreator

public sealed interface TypeParameterizedCreator permits ClassCreator, InterfaceCreator, ExecutableCreator
A creator for things which can have type parameters.
  • Method Details

    • typeParameter

      Creates a type parameter with given name and allows configuring its bounds. Returns a reference to the type parameter in the form of a type variable.
      Parameters:
      name - the name of the type parameter
      builder - the builder to configure bounds of the type parameter
      Returns:
      the type variable corresponding to the created type parameter
    • typeParameter

      default GenericType.OfTypeVariable typeParameter(String name)
      Creates a type parameter with given name and no bounds. Returns a reference to the type parameter in the form of a type variable.
      Parameters:
      name - the name of the type parameter
      Returns:
      the type variable corresponding to the created type parameter