Searched refs:negated (Results 1 – 7 of 7) sorted by relevance
/libcore/ojluni/src/main/java/java/time/chrono/ |
D | ChronoPeriod.java | 255 default ChronoPeriod negated() { in negated() method
|
/libcore/ojluni/src/test/java/time/tck/java/time/ |
D | TCKPeriod.java | 362 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()
|
D | TCKDuration.java | 651 assertEquals(test, Duration.ofSeconds(expectedSeconds, expectedNanoOfSecond).negated()); in factory_parse_minus() 785 assertEquals(Duration.between(end, start), Duration.between(start, end).negated()); in factory_between_TemporalTemporal_Instant_negated() 805 assertEquals(Duration.between(end, start), Duration.between(start, end).negated()); in factory_between_TemporalTemporal_LT_negated() 844 assertEquals(Duration.between(end, start), Duration.between(start, end).negated()); in factory_between_TemporalTemporal_LDT_negated() 2379 assertEquals(Duration.ofSeconds(0).negated(), Duration.ofSeconds(0)); in test_negated() 2380 assertEquals(Duration.ofSeconds(12).negated(), Duration.ofSeconds(-12)); in test_negated() 2381 assertEquals(Duration.ofSeconds(-12).negated(), Duration.ofSeconds(12)); in test_negated() 2382 assertEquals(Duration.ofSeconds(12, 20).negated(), Duration.ofSeconds(-12, -20)); in test_negated() 2383 assertEquals(Duration.ofSeconds(12, -20).negated(), Duration.ofSeconds(-12, 20)); in test_negated() 2384 assertEquals(Duration.ofSeconds(-12, -20).negated(), Duration.ofSeconds(12, 20)); in test_negated() [all …]
|
/libcore/ojluni/src/main/java/java/time/ |
D | Duration.java | 438 return ofSeconds(seconds, nanos).negated(); in create() 1017 public Duration negated() { in negated() method in Duration 1033 return isNegative() ? negated() : this; in abs()
|
D | Period.java | 805 public Period negated() { in negated() method in Period
|
/libcore/ojluni/annotations/hiddenapi/java/time/ |
D | Duration.java | 266 public java.time.Duration negated() { in negated() method in Duration
|
/libcore/ojluni/src/test/java/time/tck/java/time/chrono/ |
D | TCKChronoPeriod.java | 240 assertEquals(period.negated(), chrono.period(-1, -2, -3)); in test_negated()
|