wildcardtype.java

来自「java1.6众多例子参考」· Java 代码 · 共 49 行

JAVA
49
字号
/* * @(#)WildcardType.java	1.3 06/07/31 * * Copyright 2006 Sun Microsystems, Inc. All rights reserved. * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. */package javax.lang.model.type;/** * Represents a wildcard type argument. * Examples include:	<pre><tt> *   ? *   ? extends Number *   ? super T * </tt></pre> * * <p> A wildcard may have its upper bound explicitly set by an * {@code extends} clause, its lower bound explicitly set by a * {@code super} clause, or neither (but not both). * * @author Joseph D. Darcy * @author Scott Seligman * @author Peter von der Ah&eacute; * @version 1.3 06/07/31 * @since 1.6 */public interface WildcardType extends TypeMirror {    /**     * Returns the upper bound of this wildcard.     * If no upper bound is explicitly declared,     * {@code null} is returned.     *     * @return the upper bound of this wildcard     */    TypeMirror getExtendsBound();    /**     * Returns the lower bound of this wildcard.     * If no lower bound is explicitly declared,     * {@code null} is returned.     *     * @return the lower bound of this wildcard     */    TypeMirror getSuperBound();}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?