19 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
20 *
21 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
22 * or visit www.oracle.com if you need additional information or have any
23 * questions.
24 */
25
26 package java.lang.reflect;
27
28 /**
29 * {@code AnnotatedTypeVariable} represents the potentially annotated use of a
30 * type variable, whose declaration may have bounds which themselves represent
31 * annotated uses of types.
32 *
33 * @since 1.8
34 */
35 public interface AnnotatedTypeVariable extends AnnotatedType {
36
37 /**
38 * Returns the potentially annotated bounds of this type variable.
39 * Note that if no bound is explicitly declared, the bound is unannotated
40 * {@code Object}.
41 *
42 * @return the potentially annotated bounds of this type variable
43 */
44 AnnotatedType[] getAnnotatedBounds();
45 }
|
19 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
20 *
21 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
22 * or visit www.oracle.com if you need additional information or have any
23 * questions.
24 */
25
26 package java.lang.reflect;
27
28 /**
29 * {@code AnnotatedTypeVariable} represents the potentially annotated use of a
30 * type variable, whose declaration may have bounds which themselves represent
31 * annotated uses of types.
32 *
33 * @since 1.8
34 */
35 public interface AnnotatedTypeVariable extends AnnotatedType {
36
37 /**
38 * Returns the potentially annotated bounds of this type variable.
39 * If no bound is explicitly declared, the bound is unannotated
40 * {@code Object}.
41 *
42 * @return the potentially annotated bounds of this type variable
43 * @see TypeVariable#getBounds()
44 */
45 AnnotatedType[] getAnnotatedBounds();
46 }
|