Home
last modified time | relevance | path

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

/libcore/ojluni/src/main/java/java/time/chrono/
DChronoPeriod.java255 default ChronoPeriod negated() { in negated() method
/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.java651 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/
DDuration.java438 return ofSeconds(seconds, nanos).negated(); in create()
1017 public Duration negated() { in negated() method in Duration
1033 return isNegative() ? negated() : this; in abs()
DPeriod.java805 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.java240 assertEquals(period.negated(), chrono.period(-1, -2, -3)); in test_negated()