- 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 Summary
Modifier and TypeMethodDescriptiondefault GenericType.OfTypeVariabletypeParameter(String name) Creates a type parameter with givennameand no bounds.typeParameter(String name, Consumer<TypeParameterCreator> builder) Creates a type parameter with givennameand allows configuring its bounds.
-
Method Details
-
typeParameter
Creates a type parameter with givennameand 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 parameterbuilder- the builder to configure bounds of the type parameter- Returns:
- the type variable corresponding to the created type parameter
-
typeParameter
Creates a type parameter with givennameand 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
-