/libcore/luni/src/test/java/libcore/java/util/ |
D | ObjectsTest.java | 20 import java.util.Objects; 29 Objects.checkFromIndexSize(/* fromIndex */ 0, /* size */ 0, /* length */ 10); in test_checkFromIndexSize_valid() 30 Objects.checkFromIndexSize(/* fromIndex */ 10, /* size */ 0, /* length */ 10); in test_checkFromIndexSize_valid() 31 Objects.checkFromIndexSize(/* fromIndex */ 5, /* size */ 1, /* length */ 10); in test_checkFromIndexSize_valid() 32 Objects.checkFromIndexSize(/* fromIndex */ 0, /* size */ 10, /* length */ 10); in test_checkFromIndexSize_valid() 33 Objects.checkFromIndexSize(/* fromIndex */ 1, /* size */ 9, /* length */ 10); in test_checkFromIndexSize_valid() 34 Objects.checkFromIndexSize(/* fromIndex */ 0, /* size */ 9, /* length */ 10); in test_checkFromIndexSize_valid() 56 Objects.checkFromIndexSize(fromIndex, size, length); in assertFromIndexSizeOutOfBounds() 63 Objects.checkFromToIndex(/* fromIndex */ 0, /* toIndex */ 0, /* length */ 10); in test_checkFromToIndex_valid() 64 Objects.checkFromToIndex(/* fromIndex */ 10, /* toIndex */ 10, /* length */ 10); in test_checkFromToIndex_valid() [all …]
|
/libcore/ojluni/src/test/java/util/Objects/ |
D | BasicObjectsTest.java | 30 package test.java.util.Objects; 51 boolean result = Objects.equals(a, b); in testEquals() 76 boolean result = Objects.deepEquals(a, b); in testDeepEquals() 84 assertEquals(Objects.hashCode(null), 0); in testHashCode() 86 assertEquals(Objects.hashCode(s), s.hashCode()); in testHashCode() 92 assertEquals(Objects.hash((Object[])null), 0); in testHash() 93 assertEquals(Objects.hash("perfect", "ham", "THC"), Arrays.hashCode(data)); in testHash() 98 assertEquals(Objects.toString(null), "null"); in testToString() 100 assertEquals(Objects.toString(s), s); in testToString() 106 assertEquals(Objects.toString(null, s), s); in testToString2() [all …]
|
/libcore/ojluni/src/main/java/java/util/stream/ |
D | Collector.java | 29 import java.util.Objects; 268 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()
|
D | DoubleStream.java | 29 import java.util.Objects; 195 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() [all …]
|
D | IntStream.java | 29 import java.util.Objects; 196 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() [all …]
|
D | LongStream.java | 29 import java.util.Objects; 196 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() [all …]
|
D | Stream.java | 427 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 …]
|
D | MatchOps.java | 27 import java.util.Objects; 81 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()
|
/libcore/ojluni/src/main/java/java/security/spec/ |
D | RSAMultiPrimePrivateCrtKeySpec.java | 29 import java.util.Objects; 138 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()
|
D | XECPrivateKeySpec.java | 27 import java.util.Objects; 57 Objects.requireNonNull(params, "params must not be null"); in XECPrivateKeySpec() 58 Objects.requireNonNull(scalar, "scalar must not be null"); in XECPrivateKeySpec()
|
D | EdECPrivateKeySpec.java | 27 import java.util.Objects; 56 Objects.requireNonNull(params, "params must not be null"); in EdECPrivateKeySpec() 57 Objects.requireNonNull(bytes, "bytes must not be null"); in EdECPrivateKeySpec()
|
D | EdECPublicKeySpec.java | 27 import java.util.Objects; 54 Objects.requireNonNull(params, "params must not be null"); in EdECPublicKeySpec() 55 Objects.requireNonNull(point, "point must not be null"); in EdECPublicKeySpec()
|
/libcore/ojluni/src/main/java/java/nio/file/ |
D | SimpleFileVisitor.java | 30 import java.util.Objects; 60 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/ |
D | DateTimeFormatter.java | 98 import java.util.Objects; 618 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() [all …]
|
/libcore/ojluni/src/main/java/java/util/ |
D | Optional.java | 113 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() 431 return Objects.equals(value, other.value); in equals() 443 return Objects.hashCode(value); in hashCode()
|
D | PrimitiveIterator.java | 114 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()
|
D | HexFormat.java | 206 this.delimiter = Objects.requireNonNull(delimiter, "delimiter"); in HexFormat() 207 this.prefix = Objects.requireNonNull(prefix, "prefix"); in HexFormat() 208 this.suffix = Objects.requireNonNull(suffix, "suffix"); in HexFormat() 357 Objects.requireNonNull(bytes,"bytes"); in formatHex() 358 Objects.checkFromToIndex(fromIndex, toIndex, bytes.length); in formatHex() 408 Objects.requireNonNull(out, "out"); in formatHex() 409 Objects.requireNonNull(bytes, "bytes"); in formatHex() 410 Objects.checkFromToIndex(fromIndex, toIndex, bytes.length); in formatHex() 543 Objects.requireNonNull(string, "string"); in parseHex() 544 Objects.checkFromToIndex(fromIndex, toIndex, string.length()); in parseHex() [all …]
|
D | Comparator.java | 218 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()
|
/libcore/ojluni/src/main/java/java/util/function/ |
D | Predicate.java | 27 import java.util.Objects; 68 Objects.requireNonNull(other); in and() 100 Objects.requireNonNull(other); in or() 116 ? Objects::isNull in isEqual() 137 Objects.requireNonNull(target); in not()
|
/libcore/ojluni/src/main/java/java/lang/ |
D | StackTraceElement.java | 28 import java.util.Objects; 92 this.declaringClass = Objects.requireNonNull(declaringClass, "Declaring class is null"); in StackTraceElement() 93 this.methodName = Objects.requireNonNull(methodName, "Method name is null"); in StackTraceElement() 399 Objects.equals(methodName, e.methodName) && in equals() 400 Objects.equals(fileName, e.fileName); in equals() 412 result = 31*result + Objects.hashCode(fileName); in hashCode()
|
/libcore/ojluni/src/main/java/java/nio/ |
D | ByteBufferAsCharBuffer.java | 31 import java.util.Objects; 105 Objects.checkFromIndexSize(index, length, limit()); in slice() 178 Objects.checkFromIndexSize(off, length, dst.length); in get() 188 Objects.checkFromIndexSize(index, length, limit()); in get() 189 Objects.checkFromIndexSize(off, length, dst.length); in get() 244 Objects.checkFromIndexSize(off, length, src.length); in put() 255 Objects.checkFromIndexSize(index, length, limit()); in put() 256 Objects.checkFromIndexSize(off, length, src.length); in put() 330 Objects.checkFromToIndex(start, end, limit()); in toString() 355 Objects.checkFromToIndex(start, end, len); in subSequence()
|
D | HeapCharBuffer.java | 32 import java.util.Objects; 158 Objects.checkFromIndexSize(index, length, limit()); in slice() 239 Objects.checkFromIndexSize(offset, length, dst.length); in get() 251 Objects.checkFromIndexSize(index, length, limit()); in get() 252 Objects.checkFromIndexSize(offset, length, dst.length); in get() 299 Objects.checkFromIndexSize(offset, length, src.length); in put() 365 Objects.checkFromIndexSize(index, length, limit()); in put() 366 Objects.checkFromIndexSize(offset, length, src.length); in put() 383 Objects.checkFromIndexSize(start, length, src.length()); in put() 1087 Objects.checkFromToIndex(start, end, limit() - pos); in subSequence()
|
/libcore/ojluni/src/main/java/java/nio/channels/ |
D | Channels.java | 42 import java.util.Objects; 121 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"); [all …]
|
/libcore/luni/src/main/java/libcore/reflect/ |
D | ParameterizedTypeImpl.java | 22 import java.util.Objects; 89 return Objects.equals(getRawType(), that.getRawType()) && in equals() 90 Objects.equals(getOwnerType(), that.getOwnerType()) && in equals() 96 return 31 * (31 * Objects.hashCode(getRawType()) + Objects.hashCode(getOwnerType())) + in hashCode()
|
/libcore/ojluni/src/main/java/java/util/concurrent/ |
D | ConcurrentMap.java | 39 import java.util.Objects; 111 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()
|