Home
last modified time | relevance | path

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

/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.java485 public WildcardTypeImpl(Type[] upperBounds, Type[] lowerBounds) { in WildcardTypeImpl() argument
487 checkArgument(upperBounds.length == 1, "Must have exactly one upper bound."); in WildcardTypeImpl()
492 checkArgument(upperBounds[0] == Object.class, "bounded both ways"); in WildcardTypeImpl()
497 checkNotNull(upperBounds[0], "upperBound"); in WildcardTypeImpl()
498 checkNotPrimitive(upperBounds[0], "wildcard bounds"); in WildcardTypeImpl()
500 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()