Searched refs:lowerBounds (Results 1 – 6 of 6) sorted by relevance
/external/javapoet/src/main/java/com/squareup/javapoet/ |
D | WildcardTypeName.java | 33 public final List<TypeName> lowerBounds; field in WildcardTypeName 35 private WildcardTypeName(List<TypeName> upperBounds, List<TypeName> lowerBounds) { in WildcardTypeName() argument 36 this(upperBounds, lowerBounds, new ArrayList<>()); in WildcardTypeName() 39 private WildcardTypeName(List<TypeName> upperBounds, List<TypeName> lowerBounds, in WildcardTypeName() argument 43 this.lowerBounds = Util.immutableList(lowerBounds); in WildcardTypeName() 50 for (TypeName lowerBound : this.lowerBounds) { in WildcardTypeName() 57 return new WildcardTypeName(upperBounds, lowerBounds, concatAnnotations(annotations)); in annotated() 61 return new WildcardTypeName(upperBounds, lowerBounds); in withoutAnnotations() 65 if (lowerBounds.size() == 1) { in emit() 66 return out.emit("? super $T", lowerBounds.get(0)); in emit()
|
/external/guava/guava/src/com/google/common/reflect/ |
D | Types.java | 73 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 …]
|
D | TypeResolver.java | 182 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()
|
D | TypeToken.java | 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) {
|
/external/guice/core/src/com/google/inject/internal/ |
D | MoreTypes.java | 494 public WildcardTypeImpl(Type[] upperBounds, Type[] lowerBounds) { in WildcardTypeImpl() argument 495 checkArgument(lowerBounds.length <= 1, "Must have at most one lower bound."); in WildcardTypeImpl() 498 if (lowerBounds.length == 1) { in WildcardTypeImpl() 499 checkNotNull(lowerBounds[0], "lowerBound"); in WildcardTypeImpl() 500 checkNotPrimitive(lowerBounds[0], "wildcard bounds"); in WildcardTypeImpl() 502 this.lowerBound = canonicalize(lowerBounds[0]); in WildcardTypeImpl()
|
/external/mockito/src/main/java/org/mockito/internal/util/reflection/ |
D | GenericMetadataSupport.java | 617 Type[] lowerBounds = wildcard.getLowerBounds(); in firstBound() local 620 return lowerBounds.length != 0 ? lowerBounds[0] : upperBounds[0]; in firstBound()
|