Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 191 - 200 of 243 for NonNull (0.1 seconds)

  1. android/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}.)
       */
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Aug 13 20:49:47 GMT 2025
    - 4K bytes
    - Click Count (0)
  2. android/guava/src/com/google/common/base/Equivalence.java

         * and Equivalence<Object>.
         */
        private final Equivalence<? super @NonNull T> equivalence;
    
        @ParametricNullness private final T reference;
    
        private Wrapper(Equivalence<? super @NonNull T> equivalence, @ParametricNullness T reference) {
          this.equivalence = checkNotNull(equivalence);
          this.reference = reference;
        }
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Jul 10 01:47:55 GMT 2025
    - 14.5K bytes
    - Click Count (0)
  3. impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/mvnup/goals/CompatibilityFixStrategy.java

                    Stream.of(
                                    root.child(REPOSITORIES).orElse(null),
                                    root.child(PLUGIN_REPOSITORIES).orElse(null))
                            .filter(Objects::nonNull),
                    // Profile repositories
                    root.child(PROFILES).stream()
                            .flatMap(profiles -> profiles.children(PROFILE))
                            .flatMap(profile -> Stream.of(
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Tue Nov 18 18:03:26 GMT 2025
    - 22.2K bytes
    - Click Count (0)
  4. 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)) {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Aug 07 16:05:33 GMT 2025
    - 9.3K bytes
    - Click Count (0)
  5. android/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)) {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Aug 07 16:05:33 GMT 2025
    - 9K bytes
    - Click Count (0)
  6. 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.
       *
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Mar 17 19:26:39 GMT 2026
    - 64.2K bytes
    - Click Count (0)
  7. guava/src/com/google/common/collect/Synchronized.java

        }
    
        @SuppressWarnings("nullness") // TODO: b/423853632 - Remove after checker is fixed.
        @Override
        public @Nullable V merge(
            K key,
            @NonNull V value,
            BiFunction<? super @NonNull V, ? super @NonNull V, ? extends @Nullable V>
                remappingFunction) {
          synchronized (mutex) {
            return delegate().merge(key, value, remappingFunction);
          }
        }
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Fri Aug 08 15:11:10 GMT 2025
    - 56.9K bytes
    - Click Count (0)
  8. guava/src/com/google/common/collect/Maps.java

          throw new UnsupportedOperationException();
        }
    
        @Override
        public @Nullable V merge(
            K key,
            @NonNull V value,
            BiFunction<? super @NonNull V, ? super @NonNull V, ? extends @Nullable V> function) {
          throw new UnsupportedOperationException();
        }
    
        @Override
        public BiMap<V, K> inverse() {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Apr 01 17:27:13 GMT 2026
    - 163.4K bytes
    - Click Count (0)
  9. impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/LookupInvoker.java

                        } catch (Exception e) {
                            // nothing currently
                            return null;
                        }
                    })
                    .filter(Objects::nonNull)
                    .toList());
            request.setPluginArtifactRepositories(remotePluginRepositories.values().stream()
                    .map(r -> {
                        try {
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Tue Oct 28 13:01:07 GMT 2025
    - 43.2K bytes
    - Click Count (0)
  10. android/guava-tests/test/com/google/common/collect/OrderingTest.java

          assertEquals(strictlyOrderedList, ordering.sortedCopy(shuffledList));
    
          if (!strictlyOrderedList.contains(null)) {
            List<@NonNull T> nonNullShuffledList = (List<@NonNull T>) shuffledList;
            assertEquals(strictlyOrderedList, ordering.immutableSortedCopy(nonNullShuffledList));
          }
        }
      }
    
      /**
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Fri Mar 13 13:01:07 GMT 2026
    - 43.2K bytes
    - Click Count (0)
Back to Top