- Sort Score
- Num 10 results
- Language All
Results 1 - 6 of 6 for getBounds (0.66 seconds)
-
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
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Fri Oct 31 19:34:24 GMT 2025 - 24.3K bytes - Click Count (0) -
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) -
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) -
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) -
android/guava/src/com/google/common/reflect/TypeResolver.java
*/ Type resolveInternal(TypeVariable<?> var, TypeTable forDependants) { Type type = map.get(new TypeVariableKey(var)); if (type == null) { Type[] bounds = var.getBounds(); if (bounds.length == 0) { return var; } Type[] resolvedBounds = new TypeResolver(forDependants).resolveTypes(bounds); /*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) -
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) {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)