Home
last modified time | relevance | path

Searched refs:negated (Results 1 – 9 of 9) sorted by relevance

/libcore/ojluni/src/test/java/time/tck/java/time/
DTCKPeriod.java362 assertEquals(p, expected.negated()); in factory_parse_minus()
936 assertPeriod(Period.of(0, 0, 0).negated(), 0 ,0, 0); in test_negated()
937 assertPeriod(Period.of(1, 2, 3).negated(), -1, -2, -3); in test_negated()
938 assertPeriod(Period.of(-1, -2, -3).negated(), 1, 2, 3); in test_negated()
939 assertPeriod(Period.of(-1, 2, -3).negated(), 1, -2, 3); in test_negated()
940 assertPeriod(Period.of(Integer.MAX_VALUE, Integer.MAX_VALUE, Integer.MAX_VALUE).negated(), in test_negated()
946 Period.ofYears(Integer.MIN_VALUE).negated(); in test_negated_overflow_years()
951 Period.ofMonths(Integer.MIN_VALUE).negated(); in test_negated_overflow_months()
956 Period.ofDays(Integer.MIN_VALUE).negated(); in test_negated_overflow_days()
DTCKDuration.java678 assertEquals(test, Duration.ofSeconds(expectedSeconds, expectedNanoOfSecond).negated()); in factory_parse_minus()
812 assertEquals(Duration.between(end, start), Duration.between(start, end).negated()); in factory_between_TemporalTemporal_Instant_negated()
832 assertEquals(Duration.between(end, start), Duration.between(start, end).negated()); in factory_between_TemporalTemporal_LT_negated()
871 assertEquals(Duration.between(end, start), Duration.between(start, end).negated()); in factory_between_TemporalTemporal_LDT_negated()
2592 assertEquals(Duration.ofSeconds(0).negated(), Duration.ofSeconds(0)); in test_negated()
2593 assertEquals(Duration.ofSeconds(12).negated(), Duration.ofSeconds(-12)); in test_negated()
2594 assertEquals(Duration.ofSeconds(-12).negated(), Duration.ofSeconds(12)); in test_negated()
2595 assertEquals(Duration.ofSeconds(12, 20).negated(), Duration.ofSeconds(-12, -20)); in test_negated()
2596 assertEquals(Duration.ofSeconds(12, -20).negated(), Duration.ofSeconds(-12, 20)); in test_negated()
2597 assertEquals(Duration.ofSeconds(-12, -20).negated(), Duration.ofSeconds(12, 20)); in test_negated()
[all …]
DTCKLocalDate.java2580 count = end.datesUntil(start, step.negated()).count();
2591 …assertTrue(end.datesUntil(start, step.negated()).allMatch(date -> date.isAfter(start) && !date.isA…
2596 assertEquals(end.datesUntil(start, step.negated()).collect(Collectors.toList()), list);
/libcore/ojluni/src/main/java/java/time/chrono/
DChronoPeriod.java255 default ChronoPeriod negated() { in negated() method
/libcore/ojluni/src/main/java/java/time/
DDuration.java441 return ofSeconds(seconds, nanos).negated(); in create()
1038 public Duration negated() { in negated() method in Duration
1054 return isNegative() ? negated() : this; in abs()
DPeriod.java807 public Period negated() { in negated() method in Period
/libcore/ojluni/annotations/hiddenapi/java/time/
DDuration.java266 public java.time.Duration negated() { in negated() method in Duration
/libcore/ojluni/src/test/java/time/tck/java/time/chrono/
DTCKChronoPeriod.java241 assertEquals(period.negated(), chrono.period(-1, -2, -3)); in test_negated()
/libcore/api/
Dcurrent.txt11440 method public java.time.Duration negated();
11958 method public java.time.Period negated();
12258 method public default java.time.chrono.ChronoPeriod negated();