Home
last modified time | relevance | path

Searched refs:upperBounds (Results 1 – 7 of 7) sorted by relevance

/external/javapoet/src/main/java/com/squareup/javapoet/
DWildcardTypeName.java32 public final List<TypeName> upperBounds; 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
42 this.upperBounds = Util.immutableList(upperBounds); in WildcardTypeName()
45 checkArgument(this.upperBounds.size() == 1, "unexpected extends bounds: %s", upperBounds); in WildcardTypeName() local
46 for (TypeName upperBound : this.upperBounds) { in WildcardTypeName()
57 return new WildcardTypeName(upperBounds, lowerBounds, concatAnnotations(annotations)); in annotated()
61 return new WildcardTypeName(upperBounds, lowerBounds); in withoutAnnotations()
68 return upperBounds.get(0).equals(TypeName.OBJECT) in emit()
[all …]
/external/apache-commons-math/src/main/java/org/apache/commons/math/random/
DEmpiricalDistributionImpl.java90 private double[] upperBounds = null; field in EmpiricalDistributionImpl
344 upperBounds = new double[binCount]; in fillBinStats()
345 upperBounds[0] = in fillBinStats()
348 upperBounds[i] = upperBounds[i-1] + in fillBinStats()
351 upperBounds[binCount-1] = 1.0d; in fillBinStats()
383 if (x <= upperBounds[i]) { in getNextValue()
465 int len = upperBounds.length; in getGeneratorUpperBounds()
467 System.arraycopy(upperBounds, 0, out, 0, len); in getGeneratorUpperBounds()
/external/guava/guava/src/com/google/common/reflect/
DTypes.java78 Type[] upperBounds = wildcard.getUpperBounds(); in newArrayType() local
79 checkArgument(upperBounds.length == 1, "Wildcard should have only one upper bound."); in newArrayType()
80 return subtypeOf(newArrayType(upperBounds[0])); in newArrayType()
459 private final ImmutableList<Type> upperBounds; field in Types.WildcardTypeImpl
461 WildcardTypeImpl(Type[] lowerBounds, Type[] upperBounds) { in WildcardTypeImpl() argument
463 disallowPrimitiveType(upperBounds, "upper bound for wildcard"); in WildcardTypeImpl()
465 this.upperBounds = JavaVersion.CURRENT.usedInGenericType(upperBounds); in WildcardTypeImpl()
473 return toArray(upperBounds); in getUpperBounds()
480 && upperBounds.equals(Arrays.asList(that.getUpperBounds())); in equals()
486 return lowerBounds.hashCode() ^ upperBounds.hashCode(); in hashCode()
[all …]
DTypeResolver.java183 Type[] upperBounds = type.getUpperBounds(); in resolveWildcardType() local
185 resolveTypes(lowerBounds), resolveTypes(upperBounds)); in resolveWildcardType()
408 Type[] upperBounds = wildcardType.getUpperBounds(); in capture() local
410 + Joiner.on('&').join(upperBounds); in capture()
DTypeToken.java885 Type[] upperBounds = type.getUpperBounds();
886 if (upperBounds.length == 1) {
887 return supertypeBound(upperBounds[0]);
888 } else if (upperBounds.length == 0) {
973 Class<? super T> supertype, Type[] upperBounds) {
974 for (Type upperBound : upperBounds) {
/external/guice/core/src/com/google/inject/internal/
DMoreTypes.java494 public WildcardTypeImpl(Type[] upperBounds, Type[] lowerBounds) { in WildcardTypeImpl() argument
496 checkArgument(upperBounds.length == 1, "Must have exactly one upper bound."); in WildcardTypeImpl()
501 checkArgument(upperBounds[0] == Object.class, "bounded both ways"); in WildcardTypeImpl()
506 checkNotNull(upperBounds[0], "upperBound"); in WildcardTypeImpl()
507 checkNotPrimitive(upperBounds[0], "wildcard bounds"); in WildcardTypeImpl()
509 this.upperBound = canonicalize(upperBounds[0]); in WildcardTypeImpl()
/external/mockito/src/main/java/org/mockito/internal/util/reflection/
DGenericMetadataSupport.java618 Type[] upperBounds = wildcard.getUpperBounds(); in firstBound() local
620 return lowerBounds.length != 0 ? lowerBounds[0] : upperBounds[0]; in firstBound()