< prev index next >

src/java.xml.bind/share/classes/com/sun/xml/internal/bind/v2/model/nav/Navigator.java

Print this page

        

*** 68,88 **** /** * Gets the parameterization of the given base type. * * <p> * For example, given the following ! * <pre><xmp> * interface Foo<T> extends List<List<T>> {} * interface Bar extends Foo<String> {} ! * </xmp></pre> * This method works like this: ! * <pre><xmp> ! * getBaseClass( Bar, List ) = List<List<String> * getBaseClass( Bar, Foo ) = Foo<String> * getBaseClass( Foo<? extends Number>, Collection ) = Collection<List<? extends Number>> * getBaseClass( ArrayList<? extends BigInteger>, List ) = List<? extends BigInteger> ! * </xmp></pre> * * @param type * The type that derives from {@code baseType} * @param baseType * The class whose parameterization we are interested in. --- 68,88 ---- /** * Gets the parameterization of the given base type. * * <p> * For example, given the following ! * <pre>{@code * interface Foo<T> extends List<List<T>> {} * interface Bar extends Foo<String> {} ! * }</pre> * This method works like this: ! * <pre>{@code ! * getBaseClass( Bar, List ) = List<List<String>> * getBaseClass( Bar, Foo ) = Foo<String> * getBaseClass( Foo<? extends Number>, Collection ) = Collection<List<? extends Number>> * getBaseClass( ArrayList<? extends BigInteger>, List ) = List<? extends BigInteger> ! * }</pre> * * @param type * The type that derives from {@code baseType} * @param baseType * The class whose parameterization we are interested in.
< prev index next >