/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/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/util/stream/ |
D | Collector.java | 29 import java.util.Objects; 264 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()
|
D | ReduceOps.java | 27 import java.util.Objects; 70 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); [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/time/format/ |
D | DateTimeFormatter.java | 97 import java.util.Objects; 587 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() [all …]
|
/libcore/ojluni/src/main/java/java/lang/ |
D | StackTraceElement.java | 28 import java.util.Objects; 71 this.declaringClass = Objects.requireNonNull(declaringClass, "Declaring class is null"); in StackTraceElement() 72 this.methodName = Objects.requireNonNull(methodName, "Method name is null"); in StackTraceElement() 237 Objects.equals(methodName, e.methodName) && in equals() 238 Objects.equals(fileName, e.fileName); in equals() 246 result = 31*result + Objects.hashCode(fileName); in hashCode()
|
/libcore/ojluni/src/main/java/java/util/ |
D | Optional.java | 92 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() 314 return Objects.equals(value, other.value); in equals() 325 return Objects.hashCode(value); in hashCode()
|
D | PrimitiveIterator.java | 113 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()
|
D | StringJoiner.java | 121 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()
|
D | Comparator.java | 214 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()
|
/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()
|
D | IntUnaryOperator.java | 27 import java.util.Objects; 65 Objects.requireNonNull(before); in compose() 83 Objects.requireNonNull(after); in andThen()
|
D | DoubleUnaryOperator.java | 27 import java.util.Objects; 65 Objects.requireNonNull(before); in compose() 83 Objects.requireNonNull(after); in andThen()
|
D | LongUnaryOperator.java | 27 import java.util.Objects; 65 Objects.requireNonNull(before); in compose() 83 Objects.requireNonNull(after); in andThen()
|
D | IntPredicate.java | 27 import java.util.Objects; 69 Objects.requireNonNull(other); in and() 101 Objects.requireNonNull(other); in or()
|
D | LongPredicate.java | 27 import java.util.Objects; 69 Objects.requireNonNull(other); in and() 101 Objects.requireNonNull(other); in or()
|
D | DoublePredicate.java | 27 import java.util.Objects; 69 Objects.requireNonNull(other); in and() 101 Objects.requireNonNull(other); in or()
|
D | BinaryOperator.java | 27 import java.util.Objects; 58 Objects.requireNonNull(comparator); in minBy() 73 Objects.requireNonNull(comparator); in maxBy()
|
/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/io/ |
D | UncheckedIOException.java | 27 import java.util.Objects; 49 super(message, Objects.requireNonNull(cause)); in UncheckedIOException() 62 super(Objects.requireNonNull(cause)); in UncheckedIOException()
|
/libcore/luni/src/main/java/android/compat/ |
D | Compatibility.java | 26 import java.util.Objects; 86 sCallbacks = Objects.requireNonNull(callbacks); in setCallbacks() 142 this.enabled = Objects.requireNonNull(enabled); in ChangeConfig() 143 this.disabled = Objects.requireNonNull(disabled); in ChangeConfig() 208 return Objects.hash(enabled, disabled); in hashCode() 222 this.delegate = Objects.requireNonNull(delegate); in OverrideCallbacks() 223 this.changeConfig = Objects.requireNonNull(changeConfig); in OverrideCallbacks()
|
/libcore/ojluni/src/main/java/java/util/concurrent/ |
D | ConcurrentMap.java | 39 import java.util.Objects; 113 Objects.requireNonNull(action); in forEach() 288 Objects.requireNonNull(function); in replaceAll() 329 Objects.requireNonNull(mappingFunction); in computeIfAbsent() 371 Objects.requireNonNull(remappingFunction); in computeIfPresent() 479 Objects.requireNonNull(remappingFunction); in merge() 480 Objects.requireNonNull(value); in merge()
|
/libcore/ojluni/src/main/java/java/time/zone/ |
D | ZoneRulesProvider.java | 73 import java.util.Objects; 182 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/time/chrono/ |
D | ChronoZonedDateTimeImpl.java | 84 import java.util.Objects; 136 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() [all …]
|