/libcore/ojluni/src/main/java/java/util/stream/ |
H A D | LongPipeline.java | 406 public final OptionalLong max() { method in class:LongPipeline 407 return reduce(Math::max);
|
H A D | LongStream.java | 345 * @apiNote Sum, min, max, and average are all special cases of reduction. 371 * @see #max() 490 * return reduce(Long::max); 499 OptionalLong max(); method in interface:LongStream
|
H A D | ReferencePipeline.java | 516 public final Optional<P_OUT> max(Comparator<? super P_OUT> comparator) { method in class:ReferencePipeline
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/ |
H A D | MathTest.java | 615 * java.lang.Math#max(double, double) 618 // Test for method double java.lang.Math.max(double, double) 619 assertEquals("Incorrect double max value", 1908897.6000089, 620 max(-1908897.6000089, 1908897.6000089, useMath), 0D); 621 assertEquals("Incorrect double max value", 622 1908897.6000089, max(2.0, 1908897.6000089, useMath), 0D); 623 assertEquals("Incorrect double max value", -2.0, max(-2.0, -1908897.6000089, useMath), 0D); 628 Double.toString(Double.NaN), Double.toString(max(Double.NaN, 42.0d, useMath))); 630 Double.toString(Double.NaN), Double.toString(max(42. 739 private static double max(double a, double b, boolean useMath) { method in class:MathTest [all...] |
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/charset/ |
H A D | CharsetEncoderTest.java | 140 // // OK: average length less than max length 205 // Illegal Argument: byte array is longer than max length 215 // // OK: average length less than max length 1037 public MockCharsetEncoder(Charset cs, float aver, float max) { argument 1038 super(cs, aver, max); 1041 public MockCharsetEncoder(Charset cs, float aver, float max, argument 1043 super(cs, aver, max, replacement);
|
/libcore/jsr166-tests/src/test/java/jsr166/ |
H A D | ConcurrentSkipListMapTest.java | 1018 void mutateMap(NavigableMap<Integer, Integer> map, int min, int max) { argument 1020 int rangeSize = max - min + 1; 1038 assertTrue(key >= min && key <= max); 1043 void mutateSubMap(NavigableMap<Integer, Integer> map, int min, int max) { argument 1045 int rangeSize = max - min + 1; 1063 if (key >= min && key <= max) { 1085 int min, int max, boolean ascending) { 1086 check(map, min, max, ascending); 1087 check(map.descendingMap(), min, max, !ascending); 1089 mutateSubMap(map, min, max); 1084 bashSubMap(NavigableMap<Integer, Integer> map, int min, int max, boolean ascending) argument 1165 check(NavigableMap<Integer, Integer> map, final int min, final int max, final boolean ascending) argument [all...] |
/libcore/luni/src/main/java/java/math/ |
H A D | BigInteger.java | 195 final int max = (int) Math.sqrt(x); 196 for (int i = 3; i <= max; i += 2) { 822 public BigInteger max(BigInteger value) { method in class:BigInteger
|
H A D | BigDecimal.java | 750 if (Math.max(this.bitLength, augend.bitLength) + 1 < 64) { 764 Math.max(thisValue.bitLength,augend.bitLength+LONG_POWERS_OF_TEN_BIT_LENGTH[diffScale])+1<64) { 854 if (Math.max(this.bitLength, subtrahend.bitLength) + 1 < 64) { 861 Math.max(this.bitLength,subtrahend.bitLength+LONG_POWERS_OF_TEN_BIT_LENGTH[diffScale])+1<64) { 869 Math.max(this.bitLength+LONG_POWERS_OF_TEN_BIT_LENGTH[diffScale],subtrahend.bitLength)+1<64) { 1252 newScale = safeLongToInt(diffScale + Math.max(k, l)); 1442 newScale = Math.min(diffScale, Math.max(mcPrecision - quotPrecision + 1, 0)); 1448 long exp = Math.min(-diffScale, Math.max((long)mcPrecision - diffPrecision, 0)); 1966 return zeroScaledBy(Math.max(newScale, 0)); 2156 * @return {@code max(thi 2160 public BigDecimal max(BigDecimal val) { method in class:BigDecimal [all...] |
/libcore/ojluni/src/main/java/java/util/ |
H A D | JapaneseImperialCalendar.java | 262 // max value could be one year short. For example, if it's 263 // Showa 63 January 8, 63 is the actual max value since 550 int max = getMaximum(field); 567 int unit = max + 1; // 12 or 24 hours 610 max = getActualMaximum(field); 624 max = d.getMonth() - 1; 625 int n = getRolledValue(internalGet(field), amount, min, max); 626 if (n == max) { 649 int n = getRolledValue(internalGet(field), amount, min, max); 695 max 2322 getRolledValue(int value, int amount, int min, int max) argument [all...] |
H A D | GregorianCalendar.java | 1183 int max = getMaximum(field); 1201 int unit = max + 1; // 12 or 24 hours 1281 max = getActualMaximum(WEEK_OF_YEAR); 1288 // If the new value is in between min and max 1290 if (value > min && value < max) { 1302 // Make sure the same thing for the max week 1303 fd += 7 * (max - internalGet(WEEK_OF_YEAR)); 1305 max--; 1314 woy = max; 1317 amount -= woy - max; 3377 getRolledValue(int value, int amount, int min, int max) argument [all...] |
H A D | Collections.java | 709 public static <T extends Object & Comparable<? super T>> T max(Collection<? extends T> coll) { method in class:Collections 745 public static <T> T max(Collection<? extends T> coll, Comparator<? super T> comp) { method in class:Collections 747 return (T)max((Collection) coll);
|
/libcore/ojluni/src/main/java/javax/sql/ |
H A D | RowSet.java | 331 * @param max the new max column size limit in bytes; zero means unlimited 335 void setMaxFieldSize(int max) throws SQLException; argument 354 * @param max the new maximum number of rows; zero means unlimited 358 void setMaxRows(int max) throws SQLException; argument
|
/libcore/ojluni/src/test/java/time/tck/java/time/ |
H A D | TCKLocalTime.java | 788 private long[] testPoints(long max) { argument 793 points[3] = max / 7; 794 points[4] = (max / 7) * 2; 795 points[5] = (max / 2); 796 points[6] = (max / 7) * 6;; 797 points[7] = max - 2; 798 points[8] = max - 1;
|
/libcore/benchmarks/src/benchmarks/regression/ |
H A D | R.java | 1878 public static final int max = 0; field in class:R
|