Home
last modified time | relevance | path

Searched refs:nonNull (Results 1 – 25 of 33) sorted by relevance

12

/external/apache-commons-lang/src/main/java/org/apache/commons/lang3/stream/
DStreams.java614 public static <E> Stream<E> nonNull(final Collection<E> collection) { in nonNull() method
615 return of(collection).filter(Objects::nonNull); in nonNull()
627 public static <E> Stream<E> nonNull(final E... array) { in nonNull() method
628 return nonNull(of(array)); in nonNull()
639 public static <E> Stream<E> nonNull(final Stream<E> stream) { in nonNull() method
640 return of(stream).filter(Objects::nonNull); in nonNull()
/external/gson/gson/src/main/java/com/google/gson/internal/
DNonNullElementWrapperList.java32 private E nonNull(E element) { in nonNull() method in NonNullElementWrapperList
40 return delegate.set(index, nonNull(element)); in set()
44 delegate.add(index, nonNull(element)); in add()
/external/apache-commons-io/src/test/java/org/apache/commons/io/filefilter/
DIOFileFilterAbstractTest.java134 Stream.of(filters).filter(Objects::nonNull).forEach(TesterFalseFileFilter::reset); in resetFalseFilters()
138 Stream.of(filters).filter(Objects::nonNull).forEach(TesterTrueFileFilter::reset); in resetTrueFilters()
/external/apache-commons-lang/src/test/java/org/apache/commons/lang3/stream/
DStreamsTest.java149 … assertEquals(2, Streams.nonNull(Arrays.asList("A", "B")).collect(Collectors.toList()).size());
150 …assertEquals(2, Streams.nonNull(Arrays.asList(null, "A", null, "B", null)).collect(Collectors.toLi…
151 … assertEquals(0, Streams.nonNull(Arrays.asList(null, null)).collect(Collectors.toList()).size());
157 assertEquals(0, Streams.nonNull(input).collect(Collectors.toList()).size());
/external/google-smali/dexlib2/src/main/java/com/android/tools/smali/dexlib2/dexbacked/
DOatFile.java185 return Iterators.size(Iterators.filter(new DexEntryIterator(), Objects::nonNull)); in getDexFiles()
190 Iterators.filter(new DexEntryIterator(), Objects::nonNull), in getDexFiles()
203 return Iterators.size(Iterators.filter(new DexEntryIterator(), Objects::nonNull));
208 Iterators.filter(new DexEntryIterator(), Objects::nonNull),
/external/guava/android/guava/src/com/google/common/util/concurrent/
DFutures.java550 ListenableFuture<List<V>> nonNull = nullable;
551 return nonNull;
577 ListenableFuture<List<V>> nonNull = nullable;
578 return nonNull;
/external/guava/guava/src/com/google/common/util/concurrent/
DFutures.java583 ListenableFuture<List<V>> nonNull = nullable;
584 return nonNull;
610 ListenableFuture<List<V>> nonNull = nullable;
611 return nonNull;
/external/apache-commons-io/src/main/java/org/apache/commons/io/output/
DFilterCollectionWriter.java166 return writers.stream().filter(Objects::nonNull); in writers()
/external/jackson-databind/src/main/java/com/fasterxml/jackson/databind/deser/std/
DContainerDeserializerBase.java174 ClassUtil.nonNull(key, "N/A")); in wrapAndThrow()
/external/escapevelocity/src/main/java/com/google/escapevelocity/
DMethodFinder.java84 .filter(Objects::nonNull) in uncachedPublicMethodsWithName()
/external/doclava/doclet_adapter/src/main/java/com/google/doclava/javadoc/
DExecutableMemberDocImpl.java119 .filter(Objects::nonNull) in thrownExceptions()
/external/apache-commons-lang/src/main/java/org/apache/commons/lang3/
DObjectUtils.java652 return Streams.of(values).filter(Objects::nonNull).findFirst().orElse(null); in firstNonNull()
694 …return Streams.of(suppliers).map(s -> s != null ? s.get() : null).filter(Objects::nonNull).findFir… in getFirstNonNull()
/external/auto/value/src/main/java/com/google/auto/value/processor/
DNullables.java173 .filter(Objects::nonNull)
DPropertyBuilderClassifier.java372 .filter(Objects::nonNull) in builderMaker()
/external/desugar/java/com/google/devtools/common/options/
DIsolatedOptionsData.java76 .filter(Objects::nonNull) in getAllOptionDefinitionsForClass()
/external/apache-commons-lang/src/main/java/org/apache/commons/lang3/builder/
DReflectionToStringBuilder.java129 return Streams.nonNull(array).map(Objects::toString).toArray(String[]::new); in toNoNullStringArray()
/external/nullaway/nullaway/src/main/java/com/uber/nullaway/handlers/
DOptionalEmptinessHandler.java99 .filter(Objects::nonNull) in onMatchTopLevelClass()
/external/apache-commons-lang/src/main/java/org/apache/commons/lang3/text/
DExtendedMessageFormat.java526 return coll.stream().anyMatch(Objects::nonNull); in containsElements()
/external/connectedappssdk/processor/src/main/java/com/google/android/enterprise/connectedapps/processor/
DEarlyValidator.java792 .filter(Objects::nonNull) in validateParameterTypesForCrossProfileMethod()
1013 .filter(Objects::nonNull) in validateCallbackOnCacheableMethod()
1037 .filter(Objects::nonNull) in hasCallback()
DProcessor.java369 .filter(Objects::nonNull) in findAllCrossProfileMethods()
/external/libtextclassifier/java/src/com/android/textclassifier/
DTextClassifierImpl.java655 if (actionIntents.stream().anyMatch(Objects::nonNull)) { in createClassificationResult()
683 .filter(Objects::nonNull)
/external/apache-commons-lang/src/main/java/org/apache/commons/lang3/exception/
DExceptionUtils.java143 …odNames).map(m -> getCauseUsingMethodName(throwable, m)).filter(Objects::nonNull).findFirst().orEl… in getCause()
/external/TestParameterInjector/src/main/java/com/google/testing/junit/testparameterinjector/
DTestParametersMethodProcessor.java164 .filter(Objects::nonNull) in processTest()
/external/auto/common/src/main/java/com/google/auto/common/
DBasicAnnotationProcessor.java172 .filter(Objects::nonNull) in getSupportedAnnotationTypeElements()
/external/icu/tools/cldr/cldr-to-icu/src/main/java/org/unicode/icu/tool/cldrtoicu/
DSupplementalData.java607 .filter(Objects::nonNull) in resolveLocaleId()

12