Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 6 of 6 for getUpperBounds (0.08 seconds)

The search processing time has exceeded the limit. The displayed results may be partial.

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

          // Foo, SuperFoo, <? super Foo> or <? super SuperFoo>.
          return every(your.getUpperBounds()).isSupertypeOf(runtimeType)
              && every(your.getLowerBounds()).isSubtypeOf(runtimeType);
        }
        return canonicalizeWildcardsInType(runtimeType).equals(canonicalizeWildcardsInType(formalType));
      }
    
      /**
       * In reflection, {@code Foo<?>.getUpperBounds()[0]} is always {@code Object.class}, even when Foo
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Jan 29 22:14:05 GMT 2026
    - 53.8K bytes
    - Click Count (0)
  2. android/guava/src/com/google/common/reflect/TypeResolver.java

              return; // okay to say <?> is anything
            }
            WildcardType toWildcardType = (WildcardType) to;
            Type[] fromUpperBounds = fromWildcardType.getUpperBounds();
            Type[] toUpperBounds = toWildcardType.getUpperBounds();
            Type[] fromLowerBounds = fromWildcardType.getLowerBounds();
            Type[] toLowerBounds = toWildcardType.getLowerBounds();
            checkArgument(
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Sep 23 22:30:05 GMT 2025
    - 25.3K bytes
    - Click Count (0)
  3. guava-tests/test/com/google/common/reflect/TypesTest.java

        assertThat(actual.getLowerBounds())
            .asList()
            .containsExactlyElementsIn(asList(expected.getLowerBounds()))
            .inOrder();
        assertThat(actual.getUpperBounds())
            .asList()
            .containsExactlyElementsIn(asList(expected.getUpperBounds()))
            .inOrder();
      }
    
      private static class WithTypeVariable {
    
        @SuppressWarnings("unused")
        <T> void withoutBound(List<T> list) {}
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Mar 12 17:47:10 GMT 2026
    - 15.5K bytes
    - Click Count (0)
  4. src/main/java/org/codelibs/core/lang/GenericsUtil.java

            return switch (type) {
            case Class<?> clazz -> clazz;
            case ParameterizedType paramType -> getRawClass(paramType.getRawType());
            case WildcardType wildcard -> getRawClass(wildcard.getUpperBounds()[0]);
            case GenericArrayType arrayType -> {
                Class<?> rawClass = getRawClass(arrayType.getGenericComponentType());
                yield Array.newInstance(rawClass, 0).getClass();
            }
    Created: Fri Apr 03 20:58:12 GMT 2026
    - Last Modified: Thu Jul 31 08:16:49 GMT 2025
    - 23.4K bytes
    - Click Count (0)
  5. android/guava-tests/test/com/google/common/reflect/TypeTokenResolutionTest.java

        WildcardType wildcardType =
            (WildcardType) new WithGenericBound<String>() {}.getTargetType("withWildcardUpperBound");
        assertEquals(String.class, wildcardType.getUpperBounds()[0]);
      }
    
      public void testInterfaceTypeParameterResolution() throws Exception {
        assertEquals(
            String.class,
            TypeToken.of(new TypeToken<ArrayList<String>>() {}.getType())
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Mar 12 17:47:10 GMT 2026
    - 19.6K bytes
    - Click Count (0)
  6. guava-tests/test/com/google/common/reflect/TypeTokenResolutionTest.java

        WildcardType wildcardType =
            (WildcardType) new WithGenericBound<String>() {}.getTargetType("withWildcardUpperBound");
        assertEquals(String.class, wildcardType.getUpperBounds()[0]);
      }
    
      public void testInterfaceTypeParameterResolution() throws Exception {
        assertEquals(
            String.class,
            TypeToken.of(new TypeToken<ArrayList<String>>() {}.getType())
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Mar 12 17:47:10 GMT 2026
    - 19.6K bytes
    - Click Count (0)
Back to Top