/libcore/ojluni/src/main/java/java/util/function/ |
H A D | DoublePredicate.java | 80 default DoublePredicate negate() { method in interface:DoublePredicate
|
H A D | IntPredicate.java | 80 default IntPredicate negate() { method in interface:IntPredicate
|
H A D | LongPredicate.java | 80 default LongPredicate negate() { method in interface:LongPredicate
|
H A D | BiPredicate.java | 83 default BiPredicate<T, U> negate() { method in interface:BiPredicate
|
H A D | Predicate.java | 79 default Predicate<T> negate() { method in interface:Predicate
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/math/ |
H A D | BigIntegerTest.java | 128 .setBit(16).subtract(two).negate())); 224 assertTrue("bi3=copy of bi3", bi3.equals(bi3.negate().negate())); 236 two.negate().compareTo(one) < 0); 272 .add(aZillion.negate()).equals(aZillion)); 302 * @tests java.math.BigInteger#negate() 306 .negate().equals(zero)); 308 !aZillion.negate().equals(aZillion)); 310 aZillion.negate().negate() [all...] |
H A D | BigDecimalCompareTest.java | 33 * max, min, negate, signum 415 * negate() for a positive BigDecimal 424 assertEquals("incorrect value", cNumber, aNumber.negate()); 428 * negate(MathContext) for a positive BigDecimal 439 BigDecimal res = aNumber.negate(mc); 445 * negate() for a negative BigDecimal 454 assertEquals("incorrect value", cNumber, aNumber.negate()); 458 * negate(MathContext) for a negative BigDecimal 469 BigDecimal res = aNumber.negate(mc);
|
H A D | BigDecimalTest.java | 372 hash2 = new BigDecimal(value.negate(), 2); 400 BigDecimal long1 = new BigDecimal(value2.negate(), 0); 453 movePtLeft = new BigDecimal(value2.negate(), 0); 536 * @tests java.math.BigDecimal#negate() 540 assertTrue("the negate of 1233.4560000 is not -1233.4560000", negate1 541 .negate().toString().equals("-1233.4560000")); 543 assertTrue("the negate of -23465839 is not 23465839", negate1.negate() 546 assertTrue("the negate of -3.456E6 is not 3.456E6", negate1.negate() [all...] |
H A D | BigIntegerCompareTest.java | 28 * Methods: abs, compareTo, equals, max, min, negate, signum 458 * negate() a positive number. 465 BigInteger result = aNumber.negate(); 475 * negate() a negative number. 482 BigInteger result = aNumber.negate(); 492 * negate() ZERO. 497 BigInteger result = aNumber.negate();
|
H A D | OldBigIntegerTest.java | 295 .add(aZillion.negate()).equals(aZillion));
|
/libcore/luni/src/test/java/libcore/java/math/ |
H A D | OldBigDecimalCompareTest.java | 59 BigDecimal res = aNumber.negate(mc);
|
H A D | BigDecimalTest.java | 223 assertEquals(a.negate(), b); 224 assertEquals(a, b.negate()); 225 assertEquals(a, a.negate().negate());
|
H A D | OldBigDecimalTest.java | 94 BigDecimal setNeg = new BigDecimal(value.negate(), 4);
|
/libcore/ojluni/src/main/java/java/time/ |
H A D | Period.java | 326 int negate = ("-".equals(matcher.group(1)) ? -1 : 1); 333 int years = parseNumber(text, yearMatch, negate); 334 int months = parseNumber(text, monthMatch, negate); 335 int weeks = parseNumber(text, weekMatch, negate); 336 int days = parseNumber(text, dayMatch, negate); 347 private static int parseNumber(CharSequence text, String str, int negate) { argument 353 return Math.multiplyExact(val, negate);
|
H A D | Duration.java | 386 boolean negate = "-".equals(matcher.group(1)); 399 return create(negate, daysAsSecs, hoursAsSecs, minsAsSecs, seconds, nanos); 422 private static int parseFraction(CharSequence text, String parsed, int negate) { argument 429 return Integer.parseInt(parsed) * negate; 435 private static Duration create(boolean negate, long daysAsSecs, long hoursAsSecs, long minsAsSecs, long secs, int nanos) { argument 437 if (negate) {
|
/libcore/luni/src/test/java/libcore/java/util/function/ |
H A D | DoublePredicateTest.java | 77 assertFalse(alwaysTrue.negate().test(arg)); 80 assertTrue(alwaysFalse.negate().test(arg));
|
H A D | IntPredicateTest.java | 77 assertFalse(alwaysTrue.negate().test(arg)); 80 assertTrue(alwaysFalse.negate().test(arg));
|
H A D | LongPredicateTest.java | 71 assertFalse(alwaysTrue.negate().test(arg)); 74 assertTrue(alwaysFalse.negate().test(arg));
|
H A D | PredicateTest.java | 77 assertFalse(alwaysTrue.negate().test(null)); 80 assertTrue(alwaysFalse.negate().test(null));
|
H A D | BiPredicateTest.java | 79 assertFalse(alwaysTrue.negate().test(arg1, arg2)); 83 assertTrue(alwaysFalse.negate().test(arg1, arg2));
|
/libcore/luni/src/test/java/libcore/java/util/ |
H A D | RemoveIfTester.java | 33 private static final Predicate<Integer> isOdd = isEven.negate();
|
/libcore/luni/src/main/java/javax/xml/datatype/ |
H A D | Duration.java | 614 return add(rhs.negate()); 698 public abstract Duration negate(); method in class:Duration
|
/libcore/luni/src/main/java/java/math/ |
H A D | BigDecimal.java | 841 return subtrahend.negate(); 1249 p = p.negate(); 1689 return ((signum() < 0) ? negate() : this); 1698 BigDecimal result = (signum() < 0) ? negate() : new BigDecimal(getUnscaledValue(), scale); 1709 public BigDecimal negate() { method in class:BigDecimal 1713 return new BigDecimal(getUnscaledValue().negate(), scale); 1724 public BigDecimal negate(MathContext mc) { method in class:BigDecimal 1725 BigDecimal result = negate();
|
H A D | BigInteger.java | 402 public BigInteger negate() { method in class:BigInteger
|
/libcore/luni/src/test/java/libcore/java/lang/ |
H A D | MathTest.java | 191 BigInteger expected = BigInteger.valueOf(a).negate();
|