Home
last modified time | relevance | path

Searched refs:requireNonNull (Results 1 – 25 of 152) sorted by relevance

1234567

/libcore/ojluni/src/main/java/java/nio/file/
DSimpleFileVisitor.java60 Objects.requireNonNull(dir); in preVisitDirectory()
61 Objects.requireNonNull(attrs); in preVisitDirectory()
75 Objects.requireNonNull(file); in visitFile()
76 Objects.requireNonNull(attrs); in visitFile()
90 Objects.requireNonNull(file); in visitFileFailed()
107 Objects.requireNonNull(dir); in postVisitDirectory()
/libcore/ojluni/src/main/java/java/util/stream/
DCollector.java264 Objects.requireNonNull(supplier); in of()
265 Objects.requireNonNull(accumulator); in of()
266 Objects.requireNonNull(combiner); in of()
267 Objects.requireNonNull(characteristics); in of()
296 Objects.requireNonNull(supplier); in of()
297 Objects.requireNonNull(accumulator); in of()
298 Objects.requireNonNull(combiner); in of()
299 Objects.requireNonNull(finisher); in of()
300 Objects.requireNonNull(characteristics); in of()
DReduceOps.java70 Objects.requireNonNull(reducer); in makeRef()
71 Objects.requireNonNull(combiner); in makeRef()
106 Objects.requireNonNull(operator);
157 Supplier<I> supplier = Objects.requireNonNull(collector).supplier();
208 Objects.requireNonNull(seedFactory);
209 Objects.requireNonNull(accumulator);
210 Objects.requireNonNull(reducer);
246 Objects.requireNonNull(operator);
288 Objects.requireNonNull(operator);
344 Objects.requireNonNull(supplier);
[all …]
DSink.java250 this.downstream = Objects.requireNonNull(downstream); in ChainedReference()
282 this.downstream = Objects.requireNonNull(downstream); in ChainedInt()
314 this.downstream = Objects.requireNonNull(downstream); in ChainedLong()
346 this.downstream = Objects.requireNonNull(downstream); in ChainedDouble()
/libcore/ojluni/src/main/java/java/util/
DPrimitiveIterator.java113 Objects.requireNonNull(action); in forEachRemaining()
147 Objects.requireNonNull(action); in forEachRemaining()
187 Objects.requireNonNull(action); in forEachRemaining()
221 Objects.requireNonNull(action); in forEachRemaining()
260 Objects.requireNonNull(action); in forEachRemaining()
295 Objects.requireNonNull(action); in forEachRemaining()
DStringJoiner.java121 Objects.requireNonNull(prefix, "The prefix must not be null"); in StringJoiner()
122 Objects.requireNonNull(delimiter, "The delimiter must not be null"); in StringJoiner()
123 Objects.requireNonNull(suffix, "The suffix must not be null"); in StringJoiner()
146 this.emptyValue = Objects.requireNonNull(emptyValue, in setEmptyValue()
209 Objects.requireNonNull(other); in merge()
DObjects.java218 public static <T> T requireNonNull(T obj) { in requireNonNull() method in Objects
243 public static <T> T requireNonNull(T obj, String message) { in requireNonNull() method in Objects
300 return (obj != null) ? obj : requireNonNull(defaultObj, "defaultObj"); in requireNonNullElse()
320 : requireNonNull(requireNonNull(supplier, "supplier").get(), "supplier.get()"); in requireNonNullElseGet()
343 public static <T> T requireNonNull(T obj, Supplier<String> messageSupplier) { in requireNonNull() method in Objects
DComparator.java214 Objects.requireNonNull(other); in thenComparing()
433 Objects.requireNonNull(keyExtractor); in comparing()
434 Objects.requireNonNull(keyComparator); in comparing()
467 Objects.requireNonNull(keyExtractor); in comparing()
488 Objects.requireNonNull(keyExtractor); in comparingInt()
509 Objects.requireNonNull(keyExtractor); in comparingLong()
530 Objects.requireNonNull(keyExtractor); in comparingDouble()
DOptional.java92 this.value = Objects.requireNonNull(value); in Optional()
170 Objects.requireNonNull(predicate); in filter()
207 Objects.requireNonNull(mapper); in map()
233 Objects.requireNonNull(mapper); in flatMap()
237 return Objects.requireNonNull(mapper.apply(value)); in flatMap()
DSpliterators.java142 return new ArraySpliterator<>(Objects.requireNonNull(array), in spliterator()
177 checkFromToBounds(Objects.requireNonNull(array).length, fromIndex, toIndex); in spliterator()
206 return new IntArraySpliterator(Objects.requireNonNull(array), additionalCharacteristics); in spliterator()
239 checkFromToBounds(Objects.requireNonNull(array).length, fromIndex, toIndex); in spliterator()
268 return new LongArraySpliterator(Objects.requireNonNull(array), additionalCharacteristics); in spliterator()
305 checkFromToBounds(Objects.requireNonNull(array).length, fromIndex, toIndex); in spliterator()
334 return new DoubleArraySpliterator(Objects.requireNonNull(array), additionalCharacteristics); in spliterator()
371 checkFromToBounds(Objects.requireNonNull(array).length, fromIndex, toIndex); in spliterator()
420 return new IteratorSpliterator<>(Objects.requireNonNull(c), in spliterator()
451 return new IteratorSpliterator<>(Objects.requireNonNull(iterator), size, in spliterator()
[all …]
/libcore/ojluni/src/main/java/java/time/format/
DDateTimeFormatter.java587 Objects.requireNonNull(dateStyle, "dateStyle"); in ofLocalizedDate()
615 Objects.requireNonNull(timeStyle, "timeStyle"); in ofLocalizedTime()
643 Objects.requireNonNull(dateTimeStyle, "dateTimeStyle"); in ofLocalizedDateTime()
672 Objects.requireNonNull(dateStyle, "dateStyle"); in ofLocalizedDateTime()
673 Objects.requireNonNull(timeStyle, "timeStyle"); in ofLocalizedDateTime()
1376 this.printerParser = Objects.requireNonNull(printerParser, "printerParser"); in DateTimeFormatter()
1378 this.locale = Objects.requireNonNull(locale, "locale"); in DateTimeFormatter()
1379 this.decimalStyle = Objects.requireNonNull(decimalStyle, "decimalStyle"); in DateTimeFormatter()
1380 this.resolverStyle = Objects.requireNonNull(resolverStyle, "resolverStyle"); in DateTimeFormatter()
1587 Objects.requireNonNull(resolverStyle, "resolverStyle"); in withResolverStyle()
[all …]
/libcore/luni/src/test/java/libcore/java/util/
DObjectsTest.java186 assertEquals(h, Objects.requireNonNull(h)); in test_requireNonNull_T()
188 Objects.requireNonNull(null); in test_requireNonNull_T()
197 assertEquals(h, Objects.requireNonNull(h, "test")); in test_requireNonNull_T_String()
199 Objects.requireNonNull(null, "message"); in test_requireNonNull_T_String()
205 Objects.requireNonNull(null, (String) null); in test_requireNonNull_T_String()
214 assertEquals(h, Objects.requireNonNull(h, () -> "test")); in test_requireNonNull_T_Supplier()
216 Objects.requireNonNull(null, () -> "message"); in test_requireNonNull_T_Supplier()
224 Objects.requireNonNull(null, (Supplier<String>) null); in test_requireNonNull_T_Supplier()
231 assertEquals(h, Objects.requireNonNull(h, (Supplier<String>) null)); in test_requireNonNull_T_Supplier()
235 Objects.requireNonNull(null, () -> null); in test_requireNonNull_T_Supplier()
/libcore/ojluni/src/main/java/java/time/chrono/
DChronoZonedDateTimeImpl.java136 Objects.requireNonNull(localDateTime, "localDateTime"); in ofBest()
137 Objects.requireNonNull(zone, "zone"); in ofBest()
158 Objects.requireNonNull(offset, "offset"); // protect against bad ZoneRules in ofBest()
173 Objects.requireNonNull(offset, "offset"); // protect against bad ZoneRules in ofInstant()
219 this.dateTime = Objects.requireNonNull(dateTime, "dateTime"); in ChronoZonedDateTimeImpl()
220 this.offset = Objects.requireNonNull(offset, "offset"); in ChronoZonedDateTimeImpl()
221 this.zone = Objects.requireNonNull(zone, "zone"); in ChronoZonedDateTimeImpl()
272 Objects.requireNonNull(zone, "zone"); in withZoneSameInstant()
311 Objects.requireNonNull(endExclusive, "endExclusive"); in until()
318 Objects.requireNonNull(unit, "unit"); in until()
/libcore/ojluni/src/main/java/java/time/zone/
DZoneRulesProvider.java182 Objects.requireNonNull(zoneId, "zoneId"); in getRules()
211 Objects.requireNonNull(zoneId, "zoneId"); in getVersions()
250 Objects.requireNonNull(provider, "provider"); in registerProvider()
263 Objects.requireNonNull(zoneId, "zoneId"); in registerProvider0()
/libcore/ojluni/src/main/java/java/util/function/
DLongUnaryOperator.java65 Objects.requireNonNull(before); in compose()
83 Objects.requireNonNull(after); in andThen()
DDoubleUnaryOperator.java65 Objects.requireNonNull(before); in compose()
83 Objects.requireNonNull(after); in andThen()
DIntUnaryOperator.java65 Objects.requireNonNull(before); in compose()
83 Objects.requireNonNull(after); in andThen()
DIntPredicate.java69 Objects.requireNonNull(other); in and()
101 Objects.requireNonNull(other); in or()
DDoublePredicate.java69 Objects.requireNonNull(other); in and()
101 Objects.requireNonNull(other); in or()
DLongPredicate.java69 Objects.requireNonNull(other); in and()
101 Objects.requireNonNull(other); in or()
DBinaryOperator.java58 Objects.requireNonNull(comparator); in minBy()
73 Objects.requireNonNull(comparator); in maxBy()
DFunction.java67 Objects.requireNonNull(before); in compose()
87 Objects.requireNonNull(after); in andThen()
DPredicate.java68 Objects.requireNonNull(other); in and()
100 Objects.requireNonNull(other); in or()
/libcore/ojluni/src/main/java/java/io/
DUncheckedIOException.java49 super(message, Objects.requireNonNull(cause)); in UncheckedIOException()
62 super(Objects.requireNonNull(cause)); in UncheckedIOException()
/libcore/ojluni/src/main/java/java/time/
DClock.java197 Objects.requireNonNull(zone, "zone"); in system()
280 Objects.requireNonNull(baseClock, "baseClock"); in tick()
281 Objects.requireNonNull(tickDuration, "tickDuration"); in tick()
315 Objects.requireNonNull(fixedInstant, "fixedInstant"); in fixed()
316 Objects.requireNonNull(zone, "zone"); in fixed()
341 Objects.requireNonNull(baseClock, "baseClock"); in offset()
342 Objects.requireNonNull(offsetDuration, "offsetDuration"); in offset()

1234567