Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for getBounds (0.05 sec)

  1. 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.
       */
    Registered: 2025-05-30 12:43
    - Last Modified: 2025-02-11 19:03
    - 15.4K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/reflect/TypeVisitorTest.java

          @Override
          void visitParameterizedType(ParameterizedType t) {
            visit(t.getActualTypeArguments());
          }
    
          @Override
          void visitTypeVariable(TypeVariable<?> t) {
            visit(t.getBounds());
          }
        }.visit(type);
      }
    
      private static void assertVisited(Type type) {
        TypeVisitor visitor = new BaseTypeVisitor();
        try {
          visitor.visit(type);
    Registered: 2025-05-30 12:43
    - Last Modified: 2024-12-19 18:03
    - 3.8K bytes
    - Viewed (0)
  3. guava/src/com/google/common/reflect/Types.java

        AtomicReference<@Nullable Type> result = new AtomicReference<>();
        new TypeVisitor() {
          @Override
          void visitTypeVariable(TypeVariable<?> t) {
            result.set(subtypeOfComponentType(t.getBounds()));
          }
    
          @Override
          void visitWildcardType(WildcardType t) {
            result.set(subtypeOfComponentType(t.getUpperBounds()));
          }
    
          @Override
    Registered: 2025-05-30 12:43
    - Last Modified: 2025-02-13 17:34
    - 22.9K bytes
    - Viewed (0)
  4. 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]);
        }
    Registered: 2025-05-30 12:43
    - Last Modified: 2025-05-13 17:27
    - 53.5K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/reflect/Types.java

        AtomicReference<@Nullable Type> result = new AtomicReference<>();
        new TypeVisitor() {
          @Override
          void visitTypeVariable(TypeVariable<?> t) {
            result.set(subtypeOfComponentType(t.getBounds()));
          }
    
          @Override
          void visitWildcardType(WildcardType t) {
            result.set(subtypeOfComponentType(t.getUpperBounds()));
          }
    
          @Override
    Registered: 2025-05-30 12:43
    - Last Modified: 2025-02-13 17:34
    - 22.9K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/collect/FauxveridesTest.java

        final String name;
        final List<Type> bounds;
    
        TypeParameterSignature(TypeVariable<?> typeParameter) {
          name = typeParameter.getName();
          bounds = asList(typeParameter.getBounds());
        }
    
        @Override
        public boolean equals(@Nullable Object obj) {
          if (obj instanceof TypeParameterSignature) {
            TypeParameterSignature other = (TypeParameterSignature) obj;
            /*
    Registered: 2025-05-30 12:43
    - Last Modified: 2025-05-13 17:27
    - 9.4K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/reflect/TypeTokenTest.java

        assertThat(typeArgs).asList().hasSize(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());
    Registered: 2025-05-30 12:43
    - Last Modified: 2025-05-14 19:40
    - 89.2K bytes
    - Viewed (0)
  8. src/main/java/org/codelibs/core/lang/GenericsUtil.java

            final TypeVariable<?>[] typeParameters = clazz.getTypeParameters();
            for (final TypeVariable<?> typeParameter : typeParameters) {
                map.put(typeParameter, getActualClass(typeParameter.getBounds()[0], map));
            }
    
            final Class<?> superClass = clazz.getSuperclass();
            final Type superClassType = clazz.getGenericSuperclass();
            if (superClass != null) {
    Registered: 2025-05-24 08:58
    - Last Modified: 2025-05-10 01:32
    - 23.6K bytes
    - Viewed (0)
Back to top