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