Interface WildcardType

All Superinterfaces:
Type
@Deprecated(since="9",
            forRemoval=true)
public interface WildcardType
extends Type
Deprecated, for removal: This API element is subject to removal in a future version.
The declarations in this package have been superseded by those in the package jdk.javadoc.doclet. For more information, see the Migration Guide in the documentation for that package.

Represents a wildcard type argument. Examples include:

<?>
 <? extends E>
 <? super T>
A wildcard type can have explicit extends bounds or explicit super bounds or neither, but not both.

Since:
1.5

Methods

Modifier and Type Method Description
Type[] extendsBounds()

Deprecated, for removal: This API element is subject to removal in a future version.

Return the upper bounds of this wildcard type argument as given by the extends clause.

Type[] superBounds()

Deprecated, for removal: This API element is subject to removal in a future version.

Return the lower bounds of this wildcard type argument as given by the super clause.

Methods declared in interface com.sun.javadoc.Type

asAnnotatedType, asAnnotationTypeDoc, asClassDoc, asParameterizedType, asTypeVariable, asWildcardType, dimension, getElementType, isPrimitive, qualifiedTypeName, simpleTypeName, toString, typeName

Methods

extendsBounds

Type[] extendsBounds()
Deprecated, for removal: This API element is subject to removal in a future version.

Return the upper bounds of this wildcard type argument as given by the extends clause. Return an empty array if no such bounds are explicitly given.

Returns:
the extends bounds of this wildcard type argument

superBounds

Type[] superBounds()
Deprecated, for removal: This API element is subject to removal in a future version.

Return the lower bounds of this wildcard type argument as given by the super clause. Return an empty array if no such bounds are explicitly given.

Returns:
the super bounds of this wildcard type argument

© 1993, 2020, Oracle and/or its affiliates. All rights reserved.
Documentation extracted from Debian's OpenJDK Development Kit package.
Licensed under the GNU General Public License, version 2, with the Classpath Exception.
Various third party code in OpenJDK is licensed under different licenses (see Debian package).
Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
https://docs.oracle.com/en/java/javase/11/docs/api/jdk.javadoc/com/sun/javadoc/WildcardType.html