langtools/test/com/sun/javadoc/testUseOption/pkg1/C10.java
changeset 25450 9db7fe8de854
parent 25284 e6a8d468b838
equal deleted inserted replaced
25449:3c14a2e16bd6 25450:9db7fe8de854
    21  * questions.
    21  * questions.
    22  */
    22  */
    23 
    23 
    24 package pkg1;
    24 package pkg1;
    25 
    25 
       
    26 import java.util.List;
       
    27 
    26 /**
    28 /**
    27  * An implementor
    29  * An implementor
    28  *
    30  *
    29  */
    31  */
    30 public class C10 extends UsedClass implements UsedInterface, UsedInterfaceA {
    32 public class C10 extends UsedClass implements UsedInterface, UsedInterfaceA {
    36 
    38 
    37     /**
    39     /**
    38      * Me too
    40      * Me too
    39      */
    41      */
    40     public void doNothingA() {}
    42     public void doNothingA() {}
       
    43 
       
    44     /**
       
    45      * returns a collection with type param
       
    46      * @return something
       
    47      */
       
    48     public List<? extends UsedClass> foo(){return null;}
       
    49 
       
    50     /**
       
    51      * returns and takes type param variants
       
    52      * @param <T> yeah
       
    53      * @return returns a type param
       
    54      */
       
    55     public <T extends UsedInterface<? super T>> UsedInterfaceA<T> withTypeParametersOfType(Class<? extends UsedInterface> c){return null;}
       
    56 
       
    57     /**
       
    58      * returns a type param
       
    59      * @param <T> a param
       
    60      * @return something
       
    61      */
       
    62     public <T extends UsedInterface>T[] withReturningTypeParameters(){return null;}
       
    63 
       
    64     /**
       
    65      * a return a type parameter, as a static method
       
    66      * @param <T> a type param
       
    67      * @param enumType something
       
    68      * @param name something
       
    69      * @return a trype param
       
    70      */
       
    71     public static <T extends UsedInterface<T>> T withReturnVariant(Class<T> enumType, String name){return null;}
       
    72 
       
    73     /**
       
    74      * another variant of a method returning type parameters
       
    75      * @param <T> something
       
    76      * @param listenerInterface something
       
    77      * @param target something
       
    78      * @param action something
       
    79      * @return a type param
       
    80      */
       
    81     public <T> T create(UsedInterfaceA<T> listenerInterface, UsedInterface target, String action){return null;}
       
    82 
       
    83     /**
       
    84      * input is an array
       
    85      * @param elements a vararg
       
    86      */
       
    87     public void addAll(UsedInterface... elements) {}
    41 }
    88 }