Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for Carriedo (0.18 sec)

  1. android/guava/src/com/google/common/reflect/TypeToken.java

     *   <li>Capture a generic type with a (usually anonymous) subclass. For example:
     *       <pre>{@code
     * new TypeToken<List<String>>() {}
     * }</pre>
     *       <p>Note that it's critical that the actual type argument is carried by a subclass. The
     *       following code is wrong because it only captures the {@code <T>} type variable of the
     *       {@code listType()} method signature; while {@code <String>} is lost in erasure:
     *       <pre>{@code
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Jun 26 21:02:13 GMT 2023
    - 53.6K bytes
    - Viewed (0)
Back to top