Searched refs:negate (Results 1 - 25 of 26) sorted by relevance

12

/libcore/ojluni/src/main/java/java/util/function/
H A DDoublePredicate.java80 default DoublePredicate negate() { method in interface:DoublePredicate
H A DIntPredicate.java80 default IntPredicate negate() { method in interface:IntPredicate
H A DLongPredicate.java80 default LongPredicate negate() { method in interface:LongPredicate
H A DBiPredicate.java83 default BiPredicate<T, U> negate() { method in interface:BiPredicate
H A DPredicate.java79 default Predicate<T> negate() { method in interface:Predicate
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/math/
H A DBigIntegerTest.java128 .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 DBigDecimalCompareTest.java33 * 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 DBigDecimalTest.java372 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 DBigIntegerCompareTest.java28 * 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 DOldBigIntegerTest.java295 .add(aZillion.negate()).equals(aZillion));
/libcore/luni/src/test/java/libcore/java/math/
H A DOldBigDecimalCompareTest.java59 BigDecimal res = aNumber.negate(mc);
H A DBigDecimalTest.java223 assertEquals(a.negate(), b);
224 assertEquals(a, b.negate());
225 assertEquals(a, a.negate().negate());
H A DOldBigDecimalTest.java94 BigDecimal setNeg = new BigDecimal(value.negate(), 4);
/libcore/ojluni/src/main/java/java/time/
H A DPeriod.java326 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 DDuration.java386 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 DDoublePredicateTest.java77 assertFalse(alwaysTrue.negate().test(arg));
80 assertTrue(alwaysFalse.negate().test(arg));
H A DIntPredicateTest.java77 assertFalse(alwaysTrue.negate().test(arg));
80 assertTrue(alwaysFalse.negate().test(arg));
H A DLongPredicateTest.java71 assertFalse(alwaysTrue.negate().test(arg));
74 assertTrue(alwaysFalse.negate().test(arg));
H A DPredicateTest.java77 assertFalse(alwaysTrue.negate().test(null));
80 assertTrue(alwaysFalse.negate().test(null));
H A DBiPredicateTest.java79 assertFalse(alwaysTrue.negate().test(arg1, arg2));
83 assertTrue(alwaysFalse.negate().test(arg1, arg2));
/libcore/luni/src/test/java/libcore/java/util/
H A DRemoveIfTester.java33 private static final Predicate<Integer> isOdd = isEven.negate();
/libcore/luni/src/main/java/javax/xml/datatype/
H A DDuration.java614 return add(rhs.negate());
698 public abstract Duration negate(); method in class:Duration
/libcore/luni/src/main/java/java/math/
H A DBigDecimal.java841 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 DBigInteger.java402 public BigInteger negate() { method in class:BigInteger
/libcore/luni/src/test/java/libcore/java/lang/
H A DMathTest.java191 BigInteger expected = BigInteger.valueOf(a).negate();

Completed in 369 milliseconds

12