Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 6 of 6 for getBounds (0.14 seconds)

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

        if (runtimeType instanceof TypeVariable) {
          // First bound is always the super class, if one exists.
          return boundAsSuperclass(((TypeVariable<?>) runtimeType).getBounds()[0]);
        }
        if (runtimeType instanceof WildcardType) {
          // wildcard has one and only one upper bound.
          return boundAsSuperclass(((WildcardType) runtimeType).getUpperBounds()[0]);
        }
    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-tests/test/com/google/common/reflect/TypeTokenResolutionTest.java

        assertEquals(String.class, typeVariable.getBounds()[0]);
      }
    
      public void testWithRecursiveBoundInTypeVariable() throws Exception {
        TypeVariable<?> typeVariable =
            (TypeVariable<?>) new WithGenericBound<String>() {}.getTargetType("withRecursiveBound");
        assertEquals(Types.newParameterizedType(Enum.class, typeVariable), typeVariable.getBounds()[0]);
      }
    
    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)
  3. guava-tests/test/com/google/common/reflect/TypeTokenResolutionTest.java

        assertEquals(String.class, typeVariable.getBounds()[0]);
      }
    
      public void testWithRecursiveBoundInTypeVariable() throws Exception {
        TypeVariable<?> typeVariable =
            (TypeVariable<?>) new WithGenericBound<String>() {}.getTargetType("withRecursiveBound");
        assertEquals(Types.newParameterizedType(Enum.class, typeVariable), typeVariable.getBounds()[0]);
      }
    
    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)
  4. guava-tests/test/com/google/common/reflect/TypesTest.java

        if (!Types.NativeTypeVariableEquals.NATIVE_TYPE_VARIABLE_ONLY) {
          assertEquals(actual.toString(), expected.hashCode(), actual.hashCode());
        }
        assertThat(actual.getBounds())
            .asList()
            .containsExactlyElementsIn(asList(expected.getBounds()))
            .inOrder();
      }
    
      /**
       * Working with arrays requires defensive code. Verify that we clone the type array for both input
       * and output.
       */
    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)
  5. guava-tests/test/com/google/common/reflect/TypeTokenTest.java

        assertThat(typeArgs).hasLength(1);
        TypeVariable<?> captured = (TypeVariable<?>) typeArgs[0];
        assertThat(captured.getBounds()).asList().contains(Number.class);
        assertThat(captured.getBounds())
            .asList()
            .containsNoneOf(Object.class, new TypeToken<Iterable<Number>>() {}.getType());
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Fri Mar 13 13:01:07 GMT 2026
    - 89.3K bytes
    - Click Count (0)
  6. android/guava-tests/test/com/google/common/reflect/TypeTokenTest.java

        assertThat(typeArgs).hasLength(1);
        TypeVariable<?> captured = (TypeVariable<?>) typeArgs[0];
        assertThat(captured.getBounds()).asList().contains(Number.class);
        assertThat(captured.getBounds())
            .asList()
            .containsNoneOf(Object.class, new TypeToken<Iterable<Number>>() {}.getType());
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Fri Mar 13 13:01:07 GMT 2026
    - 89.3K bytes
    - Click Count (0)
Back to Top