Package h07.util

Class 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 use Assertions.UNBOUNDED as bounds.
    • Field Detail

      • name

        final String name
        Name of the type parameter represented by an instance of this class
      • bounds

        final String[] bounds
        Array of bounds for the type parameter represented by an instance of this class
    • Constructor Detail

      • TypeParameter

        private TypeParameter​(String typeParameterName,
                              String[] typeParameterBounds)
        Creates a new instance of this class.
        Parameters:
        typeParameterName - the name of the type parameter
        typeParameterBounds - the bounds of the type parameter