src/share/classes/javax/lang/model/type/TypeVariable.java

changeset 2200
7c89d200781b
parent 972
694ff82ca68e
child 2525
2eb010b6cb22
equal deleted inserted replaced
2199:66bcd5d4b3d1 2200:7c89d200781b
1 /* 1 /*
2 * Copyright (c) 2005, 2006, Oracle and/or its affiliates. All rights reserved. 2 * Copyright (c) 2005, 2013, Oracle and/or its affiliates. All rights reserved.
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 * 4 *
5 * This code is free software; you can redistribute it and/or modify it 5 * This code is free software; you can redistribute it and/or modify it
6 * under the terms of the GNU General Public License version 2 only, as 6 * under the terms of the GNU General Public License version 2 only, as
7 * published by the Free Software Foundation. Oracle designates this 7 * published by the Free Software Foundation. Oracle designates this
60 * Returns the upper bound of this type variable. 60 * Returns the upper bound of this type variable.
61 * 61 *
62 * <p> If this type variable was declared with no explicit 62 * <p> If this type variable was declared with no explicit
63 * upper bounds, the result is {@code java.lang.Object}. 63 * upper bounds, the result is {@code java.lang.Object}.
64 * If it was declared with multiple upper bounds, 64 * If it was declared with multiple upper bounds,
65 * the result is an intersection type (modeled as a 65 * the result is an {@linkplain IntersectionType intersection type};
66 * {@link DeclaredType}). 66 * individual bounds can be found by examining the result's
67 * Individual bounds can be found by examining the result's 67 * {@linkplain IntersectionType#getBounds() bounds}.
68 * {@linkplain Types#directSupertypes(TypeMirror) supertypes}.
69 * 68 *
70 * @return the upper bound of this type variable 69 * @return the upper bound of this type variable
71 */ 70 */
72 TypeMirror getUpperBound(); 71 TypeMirror getUpperBound();
73 72

mercurial