Home
last modified time | relevance | path

Searched refs:Long (Results 1 – 25 of 320) sorted by relevance

12345678910>>...13

/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/
DLongTest.java41 Long l = new Long(127); in test_byteValue()
43 assertEquals("Returned incorrect byte value", -1, new Long(Long.MAX_VALUE) in test_byteValue()
52 assertTrue("-2 compared to 1 gave non-negative answer", new Long(-2L) in test_compareToLjava_lang_Long()
53 .compareTo(new Long(1L)) < 0); in test_compareToLjava_lang_Long()
54 assertEquals("-2 compared to -2 gave non-zero answer", 0, new Long(-2L) in test_compareToLjava_lang_Long()
55 .compareTo(new Long(-2L))); in test_compareToLjava_lang_Long()
56 assertTrue("3 compared to 2 gave non-positive answer", new Long(3L) in test_compareToLjava_lang_Long()
57 .compareTo(new Long(2L)) > 0); in test_compareToLjava_lang_Long()
60 new Long(0).compareTo(null); in test_compareToLjava_lang_Long()
72 assertEquals("Returned incorrect value for hex string", 255L, Long.decode( in test_decodeLjava_lang_String2()
[all …]
/libcore/luni/src/test/java/libcore/java/lang/
DLongTest.java30 assertNull(Long.getLong("testIncLong")); in testSystemProperties()
31 assertEquals(new Long(4), Long.getLong("testIncLong", 4L)); in testSystemProperties()
32 assertEquals(new Long(4), Long.getLong("testIncLong", new Long(4))); in testSystemProperties()
39 final long min = Long.MIN_VALUE; in testCompare()
41 final long max = Long.MAX_VALUE; in testCompare()
42 assertTrue(Long.compare(max, max) == 0); in testCompare()
43 assertTrue(Long.compare(min, min) == 0); in testCompare()
44 assertTrue(Long.compare(zero, zero) == 0); in testCompare()
45 assertTrue(Long.compare(max, zero) > 0); in testCompare()
46 assertTrue(Long.compare(max, min) > 0); in testCompare()
[all …]
DStrictMathTest.java81 testLongExact(Long.MAX_VALUE, 1); in testLongExact()
82 testLongExact(Long.MAX_VALUE, -1); in testLongExact()
83 testLongExact(Long.MIN_VALUE, 1); in testLongExact()
84 testLongExact(Long.MIN_VALUE, -1); in testLongExact()
85 testLongExact(Long.MAX_VALUE, Long.MAX_VALUE); in testLongExact()
86 testLongExact(Long.MIN_VALUE, Long.MIN_VALUE); in testLongExact()
191 testFloorDivModL(Long.MAX_VALUE, 1L); in testLongFloorDivMod()
192 testFloorDivModL(Long.MAX_VALUE, -1L); in testLongFloorDivMod()
193 testFloorDivModL(Long.MIN_VALUE, 1L); in testLongFloorDivMod()
194 testFloorDivModL(Long.MIN_VALUE, -1L); in testLongFloorDivMod()
/libcore/jsr166-tests/src/test/java/jsr166/
DConcurrentHashMap8Test.java564 static ConcurrentHashMap<Long, Long> longMap;
566 static ConcurrentHashMap<Long, Long> longMap() { in longMap()
568 longMap = new ConcurrentHashMap<Long, Long>(SIZE); in longMap()
570 longMap.put(Long.valueOf(i), Long.valueOf(2 *i)); in longMap()
576 …tic class AddKeys implements BiFunction<Map.Entry<Long,Long>, Map.Entry<Long,Long>, Map.Entry<Long
577 public Map.Entry<Long,Long> apply(Map.Entry<Long,Long> x, Map.Entry<Long,Long> y) { in apply() argument
578 return new AbstractMap.SimpleEntry<Long,Long> in apply()
579 (Long.valueOf(x.getKey().longValue() + y.getKey().longValue()), in apply()
580 Long.valueOf(1L)); in apply()
589 ConcurrentHashMap<Long, Long> m = longMap(); in testForEachKeySequentially()
[all …]
DLongAccumulatorTest.java32 LongAccumulator ai = new LongAccumulator(Long::max, 0L); in testConstructor()
40 LongAccumulator ai = new LongAccumulator(Long::max, 0L); in testAccumulateAndGet()
53 LongAccumulator ai = new LongAccumulator(Long::max, 0L); in testReset()
64 LongAccumulator ai = new LongAccumulator(Long::max, 0L); in testGetThenReset()
75 LongAccumulator ai = new LongAccumulator(Long::max, 0L); in testToString()
78 assertEquals(Long.toString(1), ai.toString()); in testToString()
85 LongAccumulator ai = new LongAccumulator(Long::max, 0L); in testIntValue()
95 LongAccumulator ai = new LongAccumulator(Long::max, 0L); in testLongValue()
105 LongAccumulator ai = new LongAccumulator(Long::max, 0L); in testFloatValue()
115 LongAccumulator ai = new LongAccumulator(Long::max, 0L); in testDoubleValue()
[all …]
DTimeUnitTest.java271 assertEquals(Long.MAX_VALUE, in testConvertSaturate()
272 NANOSECONDS.convert(Long.MAX_VALUE / 2, SECONDS)); in testConvertSaturate()
273 assertEquals(Long.MIN_VALUE, in testConvertSaturate()
274 NANOSECONDS.convert(-Long.MAX_VALUE / 4, SECONDS)); in testConvertSaturate()
275 assertEquals(Long.MAX_VALUE, in testConvertSaturate()
276 NANOSECONDS.convert(Long.MAX_VALUE / 2, MINUTES)); in testConvertSaturate()
277 assertEquals(Long.MIN_VALUE, in testConvertSaturate()
278 NANOSECONDS.convert(-Long.MAX_VALUE / 4, MINUTES)); in testConvertSaturate()
279 assertEquals(Long.MAX_VALUE, in testConvertSaturate()
280 NANOSECONDS.convert(Long.MAX_VALUE / 2, HOURS)); in testConvertSaturate()
[all …]
/libcore/ojluni/src/test/java/time/tck/java/time/
DTCKDuration.java161 Duration.ofSeconds(Long.MAX_VALUE, 1000000000); in factory_seconds_long_long_tooBig()
217 Duration test = Duration.ofNanos(Long.MAX_VALUE); in factory_nanos_max()
218 assertEquals(test.getSeconds(), Long.MAX_VALUE / 1000000000); in factory_nanos_max()
219 assertEquals(test.getNano(), Long.MAX_VALUE % 1000000000); in factory_nanos_max()
224 Duration test = Duration.ofNanos(Long.MIN_VALUE); in factory_nanos_min()
225 assertEquals(test.getSeconds(), Long.MIN_VALUE / 1000000000 - 1); in factory_nanos_min()
226 assertEquals(test.getNano(), Long.MIN_VALUE % 1000000000 + 1000000000); in factory_nanos_min()
241 Duration test = Duration.ofMinutes(Long.MAX_VALUE / 60); in factory_minutes_max()
242 assertEquals(test.getSeconds(), (Long.MAX_VALUE / 60) * 60); in factory_minutes_max()
248 Duration test = Duration.ofMinutes(Long.MIN_VALUE / 60); in factory_minutes_min()
[all …]
/libcore/luni/src/test/java/libcore/java/math/
DBigDecimalTest.java51 String maxLong = Long.toString(Long.MAX_VALUE); in testGetPrecision()
53 String minLong = Long.toString(Long.MIN_VALUE); in testGetPrecision()
135 checkDivide("0", 1, Long.MIN_VALUE, 0, RoundingMode.DOWN); in testDivideRounding()
136 checkDivide("-1", 1, Long.MIN_VALUE, 0, RoundingMode.UP); in testDivideRounding()
137 checkDivide("-1", 1, Long.MIN_VALUE, 0, RoundingMode.FLOOR); in testDivideRounding()
138 checkDivide("0", 1, Long.MIN_VALUE, 0, RoundingMode.CEILING); in testDivideRounding()
139 checkDivide("0", 1, Long.MIN_VALUE, 0, RoundingMode.HALF_EVEN); in testDivideRounding()
140 checkDivide("0", 1, Long.MIN_VALUE, 0, RoundingMode.HALF_UP); in testDivideRounding()
141 checkDivide("0", 1, Long.MIN_VALUE, 0, RoundingMode.HALF_DOWN); in testDivideRounding()
143 checkDivide("1", Long.MAX_VALUE, Long.MAX_VALUE / 2 + 1, 0, RoundingMode.DOWN); in testDivideRounding()
[all …]
/libcore/ojluni/src/main/java/java/util/stream/
DLongPipeline.java56 extends AbstractPipeline<E_IN, Long, LongStream>
67 LongPipeline(Supplier<? extends Spliterator<Long>> source, in LongPipeline()
80 LongPipeline(Spliterator<Long> source, in LongPipeline()
99 private static LongConsumer adapt(Sink<Long> sink) { in adapt()
117 private static Spliterator.OfLong adapt(Spliterator<Long> s) { in adapt()
137 public final <P_IN> Node<Long> evaluateToNode(PipelineHelper<Long> helper, in evaluateToNode()
140 IntFunction<Long[]> generator) { in evaluateToNode()
145 public final <P_IN> Spliterator<Long> wrap(PipelineHelper<Long> ph, in wrap()
153 … public final Spliterator.OfLong lazySpliterator(Supplier<? extends Spliterator<Long>> supplier) { in lazySpliterator()
158 public final void forEachWithCancel(Spliterator<Long> spliterator, Sink<Long> sink) { in forEachWithCancel()
[all …]
/libcore/ojluni/src/test/java/util/stream/test/org/openjdk/tests/java/util/stream/
DConcatOpTest.java59 LongStream.range(0, Long.MAX_VALUE / 2).boxed(), in testSize()
60 LongStream.range(0, Long.MAX_VALUE / 2).boxed())); in testSize()
63 LongStream.range(0, Long.MAX_VALUE).boxed(), in testSize()
64 LongStream.range(0, Long.MAX_VALUE).boxed())); in testSize()
67 LongStream.range(0, Long.MAX_VALUE).boxed(), in testSize()
72 LongStream.range(0, Long.MAX_VALUE).boxed())); in testSize()
77 LongStream.range(0, Long.MAX_VALUE / 2), in testLongSize()
78 LongStream.range(0, Long.MAX_VALUE / 2))); in testLongSize()
81 LongStream.range(0, Long.MAX_VALUE), in testLongSize()
82 LongStream.range(0, Long.MAX_VALUE))); in testLongSize()
[all …]
DRangeTest.java192 long[] inc = LongStream.rangeClosed(Long.MAX_VALUE - 1, Long.MAX_VALUE).toArray(); in testLongRange()
194 assertEquals(Long.MAX_VALUE - 1, inc[0]); in testLongRange()
195 assertEquals(Long.MAX_VALUE, inc[1]); in testLongRange()
197 inc = LongStream.rangeClosed(Long.MAX_VALUE, Long.MAX_VALUE).toArray(); in testLongRange()
199 assertEquals(Long.MAX_VALUE, inc[0]); in testLongRange()
202 () -> LongStream.rangeClosed(Long.MAX_VALUE - 8, Long.MAX_VALUE).spliterator()); in testLongRange()
216 terminal(s -> s.reduce(0, Long::sum)).exercise(); in testLongRangeReduce()
222 terminal(s -> s.reduce(0, Long::sum)).exercise(); in testLongInfiniteRangeLimit()
244 Spliterator.OfLong s = LongStream.range(Long.MIN_VALUE, Long.MAX_VALUE).spliterator(); in testLongLongRange()
246 assertEquals(s.estimateSize(), Long.MAX_VALUE); in testLongLongRange()
[all …]
/libcore/ojluni/src/main/java/java/lang/
DLong.java55 public final class Long extends Number implements Comparable<Long> { class
75 public static final Class<Long> TYPE = (Class<Long>) Class.getPrimitiveClass("long");
355 int mag = Long.SIZE - Long.numberOfLeadingZeros(val); in toUnsignedString0()
397 if (i == Long.MIN_VALUE) in toString()
572 long limit = -Long.MAX_VALUE; in parseLong()
581 limit = Long.MIN_VALUE; in parseLong()
780 public static Long valueOf(String s, int radix) throws NumberFormatException { in valueOf()
781 return Long.valueOf(parseLong(s, radix)); in valueOf()
806 public static Long valueOf(String s) throws NumberFormatException in valueOf()
808 return Long.valueOf(parseLong(s, 10)); in valueOf()
[all …]
/libcore/ojluni/src/test/java/nio/file/attribute/
DFileTimeTest.java78 cmp(Long.MAX_VALUE, DAYS, Long.MAX_VALUE, NANOSECONDS, 1); in main()
79 cmp(Long.MAX_VALUE, DAYS, Long.MIN_VALUE, NANOSECONDS, 1); in main()
80 cmp(Long.MIN_VALUE, DAYS, Long.MIN_VALUE, NANOSECONDS, -1); in main()
81 cmp(Long.MIN_VALUE, DAYS, Long.MAX_VALUE, NANOSECONDS, -1); in main()
83 cmp(Instant.MIN, Long.MIN_VALUE, DAYS, 1); in main()
84 cmp(Instant.MIN, Long.MIN_VALUE, HOURS, 1); in main()
85 cmp(Instant.MIN, Long.MIN_VALUE, MINUTES, 1); in main()
86 cmp(Instant.MIN, Long.MIN_VALUE, SECONDS, 1); in main()
91 cmp(Instant.MAX, Long.MAX_VALUE, DAYS, -1); in main()
92 cmp(Instant.MAX, Long.MAX_VALUE, HOURS, -1); in main()
[all …]
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/text/
DNumberFormatTest.java42 out = format.format(new Long(Long.MAX_VALUE), new StringBuffer(), pos); in test_formatLjava_lang_ObjectLjava_lang_StringBufferLjava_text_FieldPosition()
47 out = format.format(new Long(Long.MIN_VALUE), new StringBuffer(), pos); in test_formatLjava_lang_ObjectLjava_lang_StringBufferLjava_text_FieldPosition()
53 .valueOf(Long.MAX_VALUE)), new StringBuffer(), pos); in test_formatLjava_lang_ObjectLjava_lang_StringBufferLjava_text_FieldPosition()
59 .valueOf(Long.MIN_VALUE)), new StringBuffer(), pos); in test_formatLjava_lang_ObjectLjava_lang_StringBufferLjava_text_FieldPosition()
65 big = new java.math.BigInteger(String.valueOf(Long.MAX_VALUE)) in test_formatLjava_lang_ObjectLjava_lang_StringBufferLjava_text_FieldPosition()
72 big = new java.math.BigInteger(String.valueOf(Long.MIN_VALUE)) in test_formatLjava_lang_ObjectLjava_lang_StringBufferLjava_text_FieldPosition()
103 format.format(new Long(0), null, pos); in test_formatLjava_lang_ObjectLjava_lang_StringBufferLjava_text_FieldPosition()
110 format.format(new Long(0), new StringBuffer(), null); in test_formatLjava_lang_ObjectLjava_lang_StringBufferLjava_text_FieldPosition()
136 new Long(35), format.parse("35.76")); in test_getIntegerInstance()
139 new Long(35), format.parseObject("35.76")); in test_getIntegerInstance()
[all …]
/libcore/ojluni/src/main/java/java/time/format/
DDateTimeTextProvider.java109 …private static final Comparator<Entry<String, Long>> COMPARATOR = new Comparator<Entry<String, Lon…
111 public int compare(Entry<String, Long> obj1, Entry<String, Long> obj2) {
219 …public Iterator<Entry<String, Long>> getTextIterator(TemporalField field, TextStyle style, Locale … in getTextIterator()
244 public Iterator<Entry<String, Long>> getTextIterator(Chronology chrono, TemporalField field, in getTextIterator()
275 List<Entry<String, Long>> list = new ArrayList<>(map.size()); in getTextIterator()
329 Map<TextStyle, Map<Long, String>> styleMap = new HashMap<>(); in createStore()
339 Map<Long, String> map = new HashMap<>(); in createStore()
355 Map<Long, String> map = new HashMap<>(); in createStore()
385 Map<Long, String> map = new HashMap<>(); in createStore()
420 Map<Long, String> map = new HashMap<>(); in createStore()
[all …]
/libcore/ojluni/src/test/java/time/jdk/testlibrary/
DRandomFactory.java40 private static Long getSystemSeed() { in getSystemSeed()
41 Long seed = null; in getSystemSeed()
46 seed = Long.valueOf(System.getProperty("seed")); in getSystemSeed()
72 Long seed = getSystemSeed(); in getSeed()
/libcore/ojluni/src/main/java/java/nio/file/attribute/
DFileTime.java147 if (secs == Long.MIN_VALUE || secs == Long.MAX_VALUE) { in to()
154 return (secs < 0) ? Long.MIN_VALUE : Long.MAX_VALUE; in to()
180 return (secs < 0) ? Long.MIN_VALUE : Long.MAX_VALUE; in toMillis()
209 if (d > over) return Long.MAX_VALUE; in scale()
210 if (d < -over) return Long.MIN_VALUE; in scale()
237 Long.MAX_VALUE/SECONDS_PER_DAY); in toInstant()
241 Long.MAX_VALUE/SECONDS_PER_HOUR); in toInstant()
245 Long.MAX_VALUE/SECONDS_PER_MINUTE); in toInstant()
340 return Long.compare(value, other.value); in compareTo()
345 int cmp = Long.compare(secs, secsOther); in compareTo()
[all …]
/libcore/ojluni/src/test/java/time/test/java/time/
DTestInstant.java82 {"Long.MAX_VALUE", Long.MAX_VALUE}, in provider_sampleEpochMillis()
83 {"Long.MAX_VALUE-1", Long.MAX_VALUE - 1}, in provider_sampleEpochMillis()
87 {"Long.MIN_VALUE+1", Long.MIN_VALUE + 1}, in provider_sampleEpochMillis()
88 {"Long.MIN_VALUE", Long.MIN_VALUE} in provider_sampleEpochMillis()
/libcore/ojluni/src/test/java/util/stream/boottest/java/util/stream/
DLongNodeTest.java48 List<Node<Long>> nodes = new ArrayList<>(); in createSizes()
56 for (Node<Long> node : nodes) { in createSizes()
65 private static void assertEqualsListLongArray(List<Long> list, long[] array) { in assertEqualsListLongArray()
71 private List<Long> toList(long[] a) { in toList()
72 List<Long> l = new ArrayList<>(); in toList()
80 private long[] toLongArray(List<Long> l) { in toLongArray()
84 for (Long e : l) { in toLongArray()
112 private Node.OfLong tree(List<Long> l, Function<List<Long>, Node.OfLong> m) { in tree() argument
143 List<Long> l = new ArrayList<>((int) n.count()); in testForEach()
172 Node.OfLong slice = n.truncate(start, end, Long[]::new); in testTruncate()
/libcore/luni/src/test/java/libcore/java/util/
DDateTest.java89 check_convertFromAndToInstant_milliseconds(Long.MIN_VALUE); in test_convertFromAndToInstant_milliseconds()
90 check_convertFromAndToInstant_milliseconds(Long.MAX_VALUE); in test_convertFromAndToInstant_milliseconds()
114 assertEquals(-808, Long.MIN_VALUE % 1000); in test_convertFromInstant_secondsAndNanos()
115 assertEquals(807, Long.MAX_VALUE % 1000); in test_convertFromInstant_secondsAndNanos()
118 long minSecond = Long.MIN_VALUE / 1000; in test_convertFromInstant_secondsAndNanos()
127 long maxSecond = Long.MAX_VALUE / 1000; in test_convertFromInstant_secondsAndNanos()
158 check_convertToInstantAndBack(Long.MIN_VALUE + 808); // minimum ofEpochMilli argument in test_convertToInstantAndBack()
159 check_convertToInstantAndBack(Long.MAX_VALUE); in test_convertToInstantAndBack()
/libcore/ojluni/src/main/java/java/util/
DUUID.java198 long mostSigBits = Long.decode(components[0]).longValue(); in fromString()
200 mostSigBits |= Long.decode(components[1]).longValue(); in fromString()
202 mostSigBits |= Long.decode(components[2]).longValue(); in fromString()
204 long leastSigBits = Long.decode(components[3]).longValue(); in fromString()
206 leastSigBits |= Long.decode(components[4]).longValue(); in fromString()
386 return Long.toHexString(hi | (val & (hi - 1))).substring(1); in digits()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/
DFormatterTest.java1743 { Long.MAX_VALUE, 'a', "So." }, //$NON-NLS-2$ in test_formatLjava_lang_String$Ljava_lang_Object_DateTimeConversion()
1749 { Long.MAX_VALUE, 'b', "Aug" }, //$NON-NLS-2$ in test_formatLjava_lang_String$Ljava_lang_Object_DateTimeConversion()
1755 { Long.MAX_VALUE, 'c', "So. Aug 17 15:18:47 GMT+08:00 292278994" }, //$NON-NLS-2$ in test_formatLjava_lang_String$Ljava_lang_Object_DateTimeConversion()
1761 { Long.MAX_VALUE, 'd', "17" }, //$NON-NLS-2$ in test_formatLjava_lang_String$Ljava_lang_Object_DateTimeConversion()
1767 { Long.MAX_VALUE, 'e', "17" }, //$NON-NLS-2$ in test_formatLjava_lang_String$Ljava_lang_Object_DateTimeConversion()
1773 { Long.MAX_VALUE, 'h', "Aug" }, //$NON-NLS-2$ in test_formatLjava_lang_String$Ljava_lang_Object_DateTimeConversion()
1779 { Long.MAX_VALUE, 'j', "229" }, //$NON-NLS-2$ in test_formatLjava_lang_String$Ljava_lang_Object_DateTimeConversion()
1785 { Long.MAX_VALUE, 'k', "15" }, //$NON-NLS-2$ in test_formatLjava_lang_String$Ljava_lang_Object_DateTimeConversion()
1791 { Long.MAX_VALUE, 'l', "3" }, //$NON-NLS-2$ in test_formatLjava_lang_String$Ljava_lang_Object_DateTimeConversion()
1797 { Long.MAX_VALUE, 'm', "08" }, //$NON-NLS-2$ in test_formatLjava_lang_String$Ljava_lang_Object_DateTimeConversion()
[all …]
/libcore/luni/src/test/java/libcore/android/system/
DStructTimespecTest.java28 StructTimespec val = new StructTimespec(Long.MIN_VALUE, 0); in testConstructor()
29 assertEquals(Long.MIN_VALUE, val.tv_sec); in testConstructor()
44 val = new StructTimespec(Long.MAX_VALUE, 999_999_999); in testConstructor()
45 assertEquals(Long.MAX_VALUE, val.tv_sec); in testConstructor()
66 StructTimespec[] specs = new StructTimespec[]{new StructTimespec(Long.MIN_VALUE, 0), in testCompare()
74 new StructTimespec(Long.MAX_VALUE, 999_999_999)}; in testCompare()
/libcore/ojluni/src/main/java/java/time/
DDuration.java415 long val = Long.parseLong(parsed); in parseNumber()
829 if (secsToSubtract == Long.MIN_VALUE) { in minus()
830 return plus(Long.MAX_VALUE, -nanosToSubtract).plus(1, 0); in minus()
851 …return (amountToSubtract == Long.MIN_VALUE ? plus(Long.MAX_VALUE, unit).plus(1, unit) : plus(-amou… in minus()
868 …return (daysToSubtract == Long.MIN_VALUE ? plusDays(Long.MAX_VALUE).plusDays(1) : plusDays(-daysTo… in minusDays()
883 …return (hoursToSubtract == Long.MIN_VALUE ? plusHours(Long.MAX_VALUE).plusHours(1) : plusHours(-ho… in minusHours()
898 …return (minutesToSubtract == Long.MIN_VALUE ? plusMinutes(Long.MAX_VALUE).plusMinutes(1) : plusMin… in minusMinutes()
911 …return (secondsToSubtract == Long.MIN_VALUE ? plusSeconds(Long.MAX_VALUE).plusSeconds(1) : plusSec… in minusSeconds()
924 …return (millisToSubtract == Long.MIN_VALUE ? plusMillis(Long.MAX_VALUE).plusMillis(1) : plusMillis… in minusMillis()
937 …return (nanosToSubtract == Long.MIN_VALUE ? plusNanos(Long.MAX_VALUE).plusNanos(1) : plusNanos(-na… in minusNanos()
[all …]
DOffsetDateTime.java171 int cmp = Long.compare(datetime1.toEpochSecond(), datetime2.toEpochSecond()); in compareInstant()
1375 …return (amountToSubtract == Long.MIN_VALUE ? plus(Long.MAX_VALUE, unit).plus(1, unit) : plus(-amou… in minus()
1400 … return (years == Long.MIN_VALUE ? plusYears(Long.MAX_VALUE).plusYears(1) : plusYears(-years)); in minusYears()
1424 …return (months == Long.MIN_VALUE ? plusMonths(Long.MAX_VALUE).plusMonths(1) : plusMonths(-months)); in minusMonths()
1443 … return (weeks == Long.MIN_VALUE ? plusWeeks(Long.MAX_VALUE).plusWeeks(1) : plusWeeks(-weeks)); in minusWeeks()
1462 return (days == Long.MIN_VALUE ? plusDays(Long.MAX_VALUE).plusDays(1) : plusDays(-days)); in minusDays()
1475 … return (hours == Long.MIN_VALUE ? plusHours(Long.MAX_VALUE).plusHours(1) : plusHours(-hours)); in minusHours()
1488 …return (minutes == Long.MIN_VALUE ? plusMinutes(Long.MAX_VALUE).plusMinutes(1) : plusMinutes(-minu… in minusMinutes()
1501 …return (seconds == Long.MIN_VALUE ? plusSeconds(Long.MAX_VALUE).plusSeconds(1) : plusSeconds(-seco… in minusSeconds()
1514 … return (nanos == Long.MIN_VALUE ? plusNanos(Long.MAX_VALUE).plusNanos(1) : plusNanos(-nanos)); in minusNanos()

12345678910>>...13