Package h07.util
Class Assertions.TypeParameter
- java.lang.Object
-
- h07.util.Assertions.TypeParameter
-
- Enclosing class:
- Assertions
public static class Assertions.TypeParameter extends Object
Represents type parameters. Type parameters can have any number of bounds. Those without any should useAssertions.UNBOUNDED
as bounds.
-
-
Constructor Summary
Constructors Modifier Constructor Description private
TypeParameter(String typeParameterName, String[] typeParameterBounds)
Creates a new instance of this class.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Assertions.TypeParameter
of(String typeParameterName, String[] typeParameterBounds)
Returns a newAssertions.TypeParameter
object representing the given type parameter.
-
-
-
Method Detail
-
of
public static Assertions.TypeParameter of(String typeParameterName, String[] typeParameterBounds)
Returns a newAssertions.TypeParameter
object representing the given type parameter.- Parameters:
typeParameterName
- the name of the type parametertypeParameterBounds
- the bound of the type parameter- Returns:
- a new
Assertions.TypeParameter
object representing the given type parameter
-
-