- Sort Score
- Result 10 results
- Languages All
Results 191 - 200 of 207 for notNull (0.04 sec)
-
guava/src/com/google/common/util/concurrent/NullnessCasts.java
* (And even if annotations on local variables were permitted as an optional hint, no annotation * would be the right tool for the job here: {@code @Nullable} is the annotation that we're trying * to get rid of, and {@code @NonNull} would be wrong for our use case for the same reason as * {@code requireNonNull}: Our use case is the one in which {@code T} has parametric nullness—and * thus its value may be legitimately {@code null}.) */
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Wed Aug 13 20:49:47 UTC 2025 - 4K bytes - Viewed (0) -
guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/ImmutableCollection.java
public abstract class ImmutableCollection<E> extends AbstractCollection<E> implements Serializable { static final int SPLITERATOR_CHARACTERISTICS = Spliterator.IMMUTABLE | Spliterator.NONNULL | Spliterator.ORDERED; ImmutableCollection() {} @Override public abstract UnmodifiableIterator<E> iterator(); @Override public boolean contains(@Nullable Object object) {
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Wed Aug 06 18:32:41 UTC 2025 - 5.1K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/Streams.java
// TODO(lowasser): consider an implementation that can support SUBSIZED boolean isParallel = false; int characteristics = Spliterator.ORDERED | Spliterator.SIZED | Spliterator.NONNULL; long estimatedSize = 0L; ImmutableList.Builder<Spliterator<? extends T>> splitrsBuilder = new ImmutableList.Builder<>(streams.length); for (Stream<? extends T> stream : streams) {
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Sat Aug 09 01:14:59 UTC 2025 - 37K bytes - Viewed (0) -
guava/src/com/google/common/collect/EnumMultiset.java
int index = e.ordinal(); return index < enumConstants.length && enumConstants[index] == e; } return false; } /** * Returns {@code element} cast to {@code E}, if it actually is a nonnull E. Otherwise, throws * either a NullPointerException or a ClassCastException as appropriate. */ private void checkIsE(Object element) { checkNotNull(element); if (!isActuallyE(element)) {
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 9.3K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/collect/testing/SpliteratorTester.java
strategy.forEach(spliteratorSupplier.get(), resultsForStrategy::add); // TODO(cpovirk): better failure messages if ((characteristics & Spliterator.NONNULL) != 0) { assertFalse(resultsForStrategy.contains(null)); } if ((characteristics & Spliterator.SORTED) != 0) { Comparator<? super E> comparator = spliterator.getComparator();
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Mon Apr 14 16:07:06 UTC 2025 - 12.5K bytes - Viewed (0) -
guava-testlib/src/com/google/common/collect/testing/SpliteratorTester.java
strategy.forEach(spliteratorSupplier.get(), resultsForStrategy::add); // TODO(cpovirk): better failure messages if ((characteristics & Spliterator.NONNULL) != 0) { assertFalse(resultsForStrategy.contains(null)); } if ((characteristics & Spliterator.SORTED) != 0) { Comparator<? super E> comparator = spliterator.getComparator();
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Sun Dec 22 03:38:46 UTC 2024 - 12.1K bytes - Viewed (0) -
android/guava/src/com/google/common/util/concurrent/Futures.java
new ListFuture<V>(ImmutableList.copyOf(futures), true); // allAsList ensures that it fills the output list with V instances. @SuppressWarnings("nullness") ListenableFuture<List<V>> nonNull = nullable; return nonNull; } /** * Creates a new {@code ListenableFuture} whose value is a list containing the values of all its * input futures, if all succeed. *
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 64.3K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/Iterables.java
import java.util.NoSuchElementException; import java.util.Queue; import java.util.RandomAccess; import java.util.Set; import java.util.SortedSet; import java.util.stream.Stream; import org.jspecify.annotations.NonNull; import org.jspecify.annotations.Nullable; /** * An assortment of mainly legacy static utility methods that operate on or return objects of type
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 43.6K bytes - Viewed (0) -
guava/src/com/google/common/collect/Iterables.java
import java.util.RandomAccess; import java.util.Set; import java.util.SortedSet; import java.util.Spliterator; import java.util.function.Consumer; import java.util.stream.Stream; import org.jspecify.annotations.NonNull; import org.jspecify.annotations.Nullable; /** * An assortment of mainly legacy static utility methods that operate on or return objects of type
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 43.3K bytes - Viewed (0) -
guava/src/com/google/common/collect/ImmutableSet.java
int maxRunBeforeFallback = maxRunBeforeFallback(hashTable.length); int mask = hashTable.length - 1; // Invariant: all elements at indices in [knownRunStart, knownRunEnd) are nonnull. // If knownRunStart == knownRunEnd, this is vacuously true. // When knownRunEnd exceeds hashTable.length, it "wraps", detecting runs around the end // of the table. int knownRunStart = 0;
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 35.2K bytes - Viewed (0)