Home
last modified time | relevance | path

Searched refs:lowerBounds (Results 1 – 5 of 5) sorted by relevance

/external/guava/guava/src/com/google/common/reflect/
DTypes.java73 Type[] lowerBounds = wildcard.getLowerBounds(); in newArrayType() local
74 checkArgument(lowerBounds.length <= 1, "Wildcard cannot have more than one lower bounds."); in newArrayType()
75 if (lowerBounds.length == 1) { in newArrayType()
76 return supertypeOf(newArrayType(lowerBounds[0])); in newArrayType()
458 private final ImmutableList<Type> lowerBounds; field in Types.WildcardTypeImpl
461 WildcardTypeImpl(Type[] lowerBounds, Type[] upperBounds) { in WildcardTypeImpl() argument
462 disallowPrimitiveType(lowerBounds, "lower bound for wildcard"); in WildcardTypeImpl()
464 this.lowerBounds = JavaVersion.CURRENT.usedInGenericType(lowerBounds); in WildcardTypeImpl()
469 return toArray(lowerBounds); in getLowerBounds()
479 return lowerBounds.equals(Arrays.asList(that.getLowerBounds())) in equals()
[all …]
DTypeResolver.java182 Type[] lowerBounds = type.getLowerBounds(); in resolveWildcardType() local
185 resolveTypes(lowerBounds), resolveTypes(upperBounds)); in resolveWildcardType()
406 Type[] lowerBounds = wildcardType.getLowerBounds(); in capture() local
407 if (lowerBounds.length == 0) { // ? extends something changes to capture-of in capture()
DTypeToken.java905 Type[] lowerBounds = type.getLowerBounds();
906 if (lowerBounds.length == 1) {
907 return subtypeBound(lowerBounds[0]);
908 } else if (lowerBounds.length == 0) {
986 private TypeToken<? extends T> getSubtypeFromLowerBounds(Class<?> subclass, Type[] lowerBounds) {
987 for (Type lowerBound : lowerBounds) {
/external/guice/core/src/com/google/inject/internal/
DMoreTypes.java485 public WildcardTypeImpl(Type[] upperBounds, Type[] lowerBounds) { in WildcardTypeImpl() argument
486 checkArgument(lowerBounds.length <= 1, "Must have at most one lower bound."); in WildcardTypeImpl()
489 if (lowerBounds.length == 1) { in WildcardTypeImpl()
490 checkNotNull(lowerBounds[0], "lowerBound"); in WildcardTypeImpl()
491 checkNotPrimitive(lowerBounds[0], "wildcard bounds"); in WildcardTypeImpl()
493 this.lowerBound = canonicalize(lowerBounds[0]); in WildcardTypeImpl()
/external/mockito/src/main/java/org/mockito/internal/util/reflection/
DGenericMetadataSupport.java617 Type[] lowerBounds = wildcard.getLowerBounds(); in firstBound() local
620 return lowerBounds.length != 0 ? lowerBounds[0] : upperBounds[0]; in firstBound()