Searched refs:lowerBounds (Results 1 – 5 of 5) sorted by relevance
73 Type[] lowerBounds = wildcard.getLowerBounds(); in newArrayType() local74 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.WildcardTypeImpl461 WildcardTypeImpl(Type[] lowerBounds, Type[] upperBounds) { in WildcardTypeImpl() argument462 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 …]
182 Type[] lowerBounds = type.getLowerBounds(); in resolveWildcardType() local185 resolveTypes(lowerBounds), resolveTypes(upperBounds)); in resolveWildcardType()406 Type[] lowerBounds = wildcardType.getLowerBounds(); in capture() local407 if (lowerBounds.length == 0) { // ? extends something changes to capture-of in capture()
905 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) {
485 public WildcardTypeImpl(Type[] upperBounds, Type[] lowerBounds) { in WildcardTypeImpl() argument486 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()
617 Type[] lowerBounds = wildcard.getLowerBounds(); in firstBound() local620 return lowerBounds.length != 0 ? lowerBounds[0] : upperBounds[0]; in firstBound()