Home
last modified time | relevance | path

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

1234567891011

/libcore/ojluni/src/main/java/java/lang/invoke/
DConstantBootstraps.java30 import static java.util.Objects.requireNonNull;
93 if (requireNonNull(type).isPrimitive()) { in nullConstant()
112 requireNonNull(name); in primitiveClass()
113 requireNonNull(type); in primitiveClass()
145 requireNonNull(lookup); in enumConstant()
146 requireNonNull(name); in enumConstant()
147 requireNonNull(type); in enumConstant()
170 requireNonNull(lookup); in getStaticFinal()
171 requireNonNull(name); in getStaticFinal()
172 requireNonNull(type); in getStaticFinal()
[all …]
/libcore/ojluni/src/main/java/java/util/stream/
DCollector.java268 Objects.requireNonNull(supplier); in of()
269 Objects.requireNonNull(accumulator); in of()
270 Objects.requireNonNull(combiner); in of()
271 Objects.requireNonNull(characteristics); in of()
300 Objects.requireNonNull(supplier); in of()
301 Objects.requireNonNull(accumulator); in of()
302 Objects.requireNonNull(combiner); in of()
303 Objects.requireNonNull(finisher); in of()
304 Objects.requireNonNull(characteristics); in of()
DDoubleStream.java195 Objects.requireNonNull(mapper); in mapMulti()
377 Objects.requireNonNull(predicate); in takeWhile()
444 Objects.requireNonNull(predicate); in dropWhile()
1003 Objects.requireNonNull(f); in iterate()
1011 Objects.requireNonNull(action); in iterate()
1064 Objects.requireNonNull(next); in iterate()
1065 Objects.requireNonNull(hasNext); in iterate()
1073 Objects.requireNonNull(action); in iterate()
1093 Objects.requireNonNull(action); in iterate()
1116 Objects.requireNonNull(s); in generate()
[all …]
DIntStream.java196 Objects.requireNonNull(mapper); in mapMulti()
374 Objects.requireNonNull(predicate); in takeWhile()
440 Objects.requireNonNull(predicate); in dropWhile()
944 Objects.requireNonNull(f); in iterate()
952 Objects.requireNonNull(action); in iterate()
1005 Objects.requireNonNull(next); in iterate()
1006 Objects.requireNonNull(hasNext); in iterate()
1014 Objects.requireNonNull(action); in iterate()
1034 Objects.requireNonNull(action); in iterate()
1057 Objects.requireNonNull(s); in generate()
[all …]
DStream.java427 Objects.requireNonNull(mapper); in mapMulti()
465 Objects.requireNonNull(mapper); in mapMultiToInt()
503 Objects.requireNonNull(mapper);
541 Objects.requireNonNull(mapper);
760 Objects.requireNonNull(predicate);
826 Objects.requireNonNull(predicate);
1453 Objects.requireNonNull(f);
1461 Objects.requireNonNull(action);
1515 Objects.requireNonNull(next);
1516 Objects.requireNonNull(hasNext);
[all …]
DLongStream.java196 Objects.requireNonNull(mapper); in mapMulti()
375 Objects.requireNonNull(predicate); in takeWhile()
442 Objects.requireNonNull(predicate); in dropWhile()
933 Objects.requireNonNull(f); in iterate()
941 Objects.requireNonNull(action); in iterate()
994 Objects.requireNonNull(next); in iterate()
995 Objects.requireNonNull(hasNext); in iterate()
1003 Objects.requireNonNull(action); in iterate()
1023 Objects.requireNonNull(action); in iterate()
1046 Objects.requireNonNull(s); in generate()
[all …]
DMatchOps.java81 Objects.requireNonNull(predicate); in makeRef()
82 Objects.requireNonNull(matchKind); in makeRef()
110 Objects.requireNonNull(predicate); in makeInt()
111 Objects.requireNonNull(matchKind); in makeInt()
139 Objects.requireNonNull(predicate); in makeLong()
140 Objects.requireNonNull(matchKind); in makeLong()
169 Objects.requireNonNull(predicate); in makeDouble()
170 Objects.requireNonNull(matchKind); in makeDouble()
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);
287 Objects.requireNonNull(operator);
329 Objects.requireNonNull(operator);
385 Objects.requireNonNull(supplier);
[all …]
/libcore/ojluni/src/main/java/java/security/spec/
DRSAMultiPrimePrivateCrtKeySpec.java138 Objects.requireNonNull(modulus, in RSAMultiPrimePrivateCrtKeySpec()
140 Objects.requireNonNull(privateExponent, in RSAMultiPrimePrivateCrtKeySpec()
142 this.publicExponent = Objects.requireNonNull(publicExponent, in RSAMultiPrimePrivateCrtKeySpec()
144 this.primeP = Objects.requireNonNull(primeP, in RSAMultiPrimePrivateCrtKeySpec()
146 this.primeQ = Objects.requireNonNull(primeQ, in RSAMultiPrimePrivateCrtKeySpec()
148 this.primeExponentP = Objects.requireNonNull(primeExponentP, in RSAMultiPrimePrivateCrtKeySpec()
150 this.primeExponentQ = Objects.requireNonNull(primeExponentQ, in RSAMultiPrimePrivateCrtKeySpec()
152 this.crtCoefficient = Objects.requireNonNull(crtCoefficient, in RSAMultiPrimePrivateCrtKeySpec()
/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/time/format/
DDateTimeFormatter.java618 Objects.requireNonNull(dateStyle, "dateStyle"); in ofLocalizedDate()
649 Objects.requireNonNull(timeStyle, "timeStyle"); in ofLocalizedTime()
680 Objects.requireNonNull(dateTimeStyle, "dateTimeStyle"); in ofLocalizedDateTime()
712 Objects.requireNonNull(dateStyle, "dateStyle"); in ofLocalizedDateTime()
713 Objects.requireNonNull(timeStyle, "timeStyle"); in ofLocalizedDateTime()
1425 this.printerParser = Objects.requireNonNull(printerParser, "printerParser"); in DateTimeFormatter()
1427 this.locale = Objects.requireNonNull(locale, "locale"); in DateTimeFormatter()
1428 this.decimalStyle = Objects.requireNonNull(decimalStyle, "decimalStyle"); in DateTimeFormatter()
1429 this.resolverStyle = Objects.requireNonNull(resolverStyle, "resolverStyle"); in DateTimeFormatter()
1687 Objects.requireNonNull(resolverStyle, "resolverStyle"); in withResolverStyle()
[all …]
/libcore/ojluni/src/main/java/java/util/
DPrimitiveIterator.java114 Objects.requireNonNull(action); in forEachRemaining()
148 Objects.requireNonNull(action); in forEachRemaining()
181 Objects.requireNonNull(action); in forEachRemaining()
215 Objects.requireNonNull(action); in forEachRemaining()
247 Objects.requireNonNull(action); in forEachRemaining()
282 Objects.requireNonNull(action); in forEachRemaining()
DOptional.java113 return new Optional<>(Objects.requireNonNull(value)); in of()
214 Objects.requireNonNull(predicate); in filter()
256 Objects.requireNonNull(mapper); in map()
284 Objects.requireNonNull(mapper); in flatMap()
290 return Objects.requireNonNull(r); in flatMap()
308 Objects.requireNonNull(supplier); in or()
314 return Objects.requireNonNull(r); in or()
DObjects.java205 public static <T> T requireNonNull(T obj) { in requireNonNull() method in Objects
230 public static <T> T requireNonNull(T obj, String message) { in requireNonNull() method in Objects
287 return (obj != null) ? obj : requireNonNull(defaultObj, "defaultObj"); in requireNonNullElse()
307 : requireNonNull(requireNonNull(supplier, "supplier").get(), "supplier.get()"); in requireNonNullElseGet()
330 public static <T> T requireNonNull(T obj, Supplier<String> messageSupplier) { in requireNonNull() method in Objects
DComparator.java218 Objects.requireNonNull(other); in thenComparing()
437 Objects.requireNonNull(keyExtractor); in comparing()
438 Objects.requireNonNull(keyComparator); in comparing()
471 Objects.requireNonNull(keyExtractor); in comparing()
492 Objects.requireNonNull(keyExtractor); in comparingInt()
513 Objects.requireNonNull(keyExtractor); in comparingLong()
534 Objects.requireNonNull(keyExtractor); in comparingDouble()
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()
145 this.emptyValue = Objects.requireNonNull(emptyValue, in setEmptyValue()
232 Objects.requireNonNull(other); in merge()
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/nio/channels/
DChannels.java121 Objects.requireNonNull(ch, "ch"); in newInputStream()
140 Objects.requireNonNull(ch, "ch"); in newOutputStream()
200 Objects.requireNonNull(ch, "ch"); in newInputStream()
275 Objects.requireNonNull(ch, "ch");
348 Objects.requireNonNull(in, "in");
426 Objects.requireNonNull(out, "out");
518 Objects.requireNonNull(ch, "ch");
553 Objects.requireNonNull(csName, "csName");
585 Objects.requireNonNull(charset, "charset");
618 Objects.requireNonNull(ch, "ch");
[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/lang/constant/
DClassDesc.java36 import static java.util.Objects.requireNonNull;
77 ConstantUtils.validateBinaryClassName(requireNonNull(name)); in of()
96 ConstantUtils.validateBinaryClassName(requireNonNull(packageName)); in of()
100 validateMemberName(requireNonNull(className), false); in of()
130 requireNonNull(descriptor); in ofDescriptor()
222 requireNonNull(moreNestedNames); in nested()
DDynamicCallSiteDesc.java37 import static java.util.Objects.requireNonNull;
78 this.invocationName = validateMemberName(requireNonNull(invocationName), true); in DynamicCallSiteDesc()
79 this.invocationType = requireNonNull(invocationType); in DynamicCallSiteDesc()
80 this.bootstrapMethod = requireNonNull(bootstrapMethod); in DynamicCallSiteDesc()
81 this.bootstrapArgs = requireNonNull(bootstrapArgs.clone()); in DynamicCallSiteDesc()
83 requireNonNull(this.bootstrapArgs[i]); in DynamicCallSiteDesc()
/libcore/ojluni/src/main/java/java/time/chrono/
DChronoZonedDateTimeImpl.java137 Objects.requireNonNull(localDateTime, "localDateTime"); in ofBest()
138 Objects.requireNonNull(zone, "zone"); in ofBest()
159 Objects.requireNonNull(offset, "offset"); // protect against bad ZoneRules in ofBest()
174 Objects.requireNonNull(offset, "offset"); // protect against bad ZoneRules in ofInstant()
220 this.dateTime = Objects.requireNonNull(dateTime, "dateTime"); in ChronoZonedDateTimeImpl()
221 this.offset = Objects.requireNonNull(offset, "offset"); in ChronoZonedDateTimeImpl()
222 this.zone = Objects.requireNonNull(zone, "zone"); in ChronoZonedDateTimeImpl()
273 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/
DZonedDateTime.java227 Objects.requireNonNull(clock, "clock"); in now()
362 Objects.requireNonNull(localDateTime, "localDateTime"); in ofLocal()
363 Objects.requireNonNull(zone, "zone"); in ofLocal()
380 … offset = Objects.requireNonNull(validOffsets.get(0), "offset"); // protect against bad ZoneRules in ofLocal()
402 Objects.requireNonNull(instant, "instant"); in ofInstant()
403 Objects.requireNonNull(zone, "zone"); in ofInstant()
428 Objects.requireNonNull(localDateTime, "localDateTime"); in ofInstant()
429 Objects.requireNonNull(offset, "offset"); in ofInstant()
430 Objects.requireNonNull(zone, "zone"); in ofInstant()
471 Objects.requireNonNull(localDateTime, "localDateTime"); in ofStrict()
[all …]
/libcore/ojluni/src/main/java/java/util/concurrent/
DConcurrentMap.java111 Objects.requireNonNull(action); in forEach()
286 Objects.requireNonNull(function); in replaceAll()
327 Objects.requireNonNull(mappingFunction); in computeIfAbsent()
369 Objects.requireNonNull(remappingFunction); in computeIfPresent()
477 Objects.requireNonNull(remappingFunction); in merge()
478 Objects.requireNonNull(value); in merge()
/libcore/ojluni/src/main/java/java/util/function/
DPredicate.java68 Objects.requireNonNull(other); in and()
100 Objects.requireNonNull(other); in or()
137 Objects.requireNonNull(target); in not()

1234567891011