Home
last modified time | relevance | path

Searched refs:negated (Results 1 – 6 of 6) 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()
/libcore/ojluni/src/main/java/java/time/
DDuration.java440 return ofSeconds(seconds, nanos).negated(); in create()
1037 public Duration negated() { in negated() method in Duration
1053 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()