Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for wildcards (0.18 sec)

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

        }
      }
    
      // This is needed when resolving types against a context with wildcards
      // For example:
      // class Holder<T> {
      //   void set(T data) {...}
      // }
      // Holder<List<?>> should *not* resolve the set() method to set(List<?> data).
      // Instead, it should create a capture of the wildcard so that set() rejects any List<T>.
      private static class WildcardCapturer {
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Sep 03 14:03:14 UTC 2025
    - 24.2K bytes
    - Viewed (0)
  2. guava/src/com/google/common/reflect/TypeResolver.java

        }
      }
    
      // This is needed when resolving types against a context with wildcards
      // For example:
      // class Holder<T> {
      //   void set(T data) {...}
      // }
      // Holder<List<?>> should *not* resolve the set() method to set(List<?> data).
      // Instead, it should create a capture of the wildcard so that set() rejects any List<T>.
      private static class WildcardCapturer {
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Sep 03 14:03:14 UTC 2025
    - 24.2K bytes
    - Viewed (0)
  3. guava/src/com/google/common/reflect/Types.java

          WildcardType wildcard = (WildcardType) componentType;
          Type[] lowerBounds = wildcard.getLowerBounds();
          checkArgument(lowerBounds.length <= 1, "Wildcard cannot have more than one lower bounds.");
          if (lowerBounds.length == 1) {
            return supertypeOf(newArrayType(lowerBounds[0]));
          } else {
            Type[] upperBounds = wildcard.getUpperBounds();
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Sep 03 14:03:14 UTC 2025
    - 23.5K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/reflect/Types.java

          WildcardType wildcard = (WildcardType) componentType;
          Type[] lowerBounds = wildcard.getLowerBounds();
          checkArgument(lowerBounds.length <= 1, "Wildcard cannot have more than one lower bounds.");
          if (lowerBounds.length == 1) {
            return supertypeOf(newArrayType(lowerBounds[0]));
          } else {
            Type[] upperBounds = wildcard.getUpperBounds();
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Sep 03 14:03:14 UTC 2025
    - 23.6K bytes
    - Viewed (0)
Back to top