Class TypeBound

A type bound on a type variable.

For example, Number is a type bound on the type variable T in class X<T extends Number> { }.

Type variables can have multiple type bounds, specified by an intersection type T0 & T1 & ... & Tn. A bound with position 0 is an interface type or class type (possibly Object) and a bound with a non-zero position is an interface type.

Import path

import java

Direct supertypes

Indirect supertypes



Gets the type variable that is bounded by this type bound.


Gets the (zero-indexed) position of this bound.


Gets the type of this bound.


Gets a textual representation of this type bound.