Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 237 for checkNotNull (0.28 sec)

  1. guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/AbstractSortedMultiset.java

          E fromElement, BoundType fromBoundType, E toElement, BoundType toBoundType) {
        // These are checked elsewhere, but NullPointerTester wants them checked eagerly.
        checkNotNull(fromBoundType);
        checkNotNull(toBoundType);
        return tailMultiset(fromElement, fromBoundType).headMultiset(toElement, toBoundType);
      }
    
      abstract Iterator<Entry<E>> descendingEntryIterator();
    
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Jan 23 18:43:40 GMT 2024
    - 4.4K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/cache/TestingCacheLoaders.java

      static <K, V> CacheLoader<K, V> errorLoader(final Error e) {
        checkNotNull(e);
        return new CacheLoader<K, V>() {
          @Override
          public V load(K key) {
            throw e;
          }
        };
      }
    
      /** Returns a {@link CacheLoader} that throws the given exception for every request. */
      static <K, V> CacheLoader<K, V> exceptionLoader(final Exception e) {
        checkNotNull(e);
        return new CacheLoader<K, V>() {
          @Override
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed May 09 15:17:25 GMT 2018
    - 4.9K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/base/Enums.java

       * Enums.getIfPresent(Country.class, countryInput).or(Country.DEFAULT);}
       *
       * @since 12.0
       */
      public static <T extends Enum<T>> Optional<T> getIfPresent(Class<T> enumClass, String value) {
        checkNotNull(enumClass);
        checkNotNull(value);
        return Platform.getEnumIfPresent(enumClass, value);
      }
    
      @GwtIncompatible // java.lang.ref.WeakReference
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Fri May 26 11:56:44 GMT 2023
    - 5K bytes
    - Viewed (0)
  4. guava/src/com/google/common/collect/FilteredKeyMultimap.java

      final Multimap<K, V> unfiltered;
      final Predicate<? super K> keyPredicate;
    
      FilteredKeyMultimap(Multimap<K, V> unfiltered, Predicate<? super K> keyPredicate) {
        this.unfiltered = checkNotNull(unfiltered);
        this.keyPredicate = checkNotNull(keyPredicate);
      }
    
      @Override
      public Multimap<K, V> unfiltered() {
        return unfiltered;
      }
    
      @Override
      public Predicate<? super Entry<K, V>> entryPredicate() {
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Tue Jun 15 21:08:00 GMT 2021
    - 6.2K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/util/concurrent/CombinedFuture.java

          super(listenerExecutor);
          this.callable = checkNotNull(callable);
        }
    
        @Override
        ListenableFuture<V> runInterruptibly() throws Exception {
          ListenableFuture<V> result = callable.call();
          return checkNotNull(
              result,
              "AsyncCallable.call returned null instead of a Future. "
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Feb 01 21:46:34 GMT 2024
    - 6.8K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/collect/FilteredKeyMultimap.java

      final Multimap<K, V> unfiltered;
      final Predicate<? super K> keyPredicate;
    
      FilteredKeyMultimap(Multimap<K, V> unfiltered, Predicate<? super K> keyPredicate) {
        this.unfiltered = checkNotNull(unfiltered);
        this.keyPredicate = checkNotNull(keyPredicate);
      }
    
      @Override
      public Multimap<K, V> unfiltered() {
        return unfiltered;
      }
    
      @Override
      public Predicate<? super Entry<K, V>> entryPredicate() {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Jun 15 21:08:00 GMT 2021
    - 6.2K bytes
    - Viewed (0)
  7. guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/ImmutableEnumMap.java

    @ElementTypesAreNonnullByDefault
    final class ImmutableEnumMap<K, V> extends ForwardingImmutableMap<K, V> {
      static <K, V> ImmutableMap<K, V> asImmutable(Map<K, V> map) {
        for (Entry<K, V> entry : checkNotNull(map).entrySet()) {
          checkNotNull(entry.getKey());
          checkNotNull(entry.getValue());
        }
        return new ImmutableEnumMap<K, V>(map);
      }
    
      private ImmutableEnumMap(Map<? extends K, ? extends V> delegate) {
        super(delegate);
      }
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Jan 23 18:43:40 GMT 2024
    - 1.3K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/util/concurrent/TrustedListenableFutureTask.java

        TrustedFutureInterruptibleAsyncTask(AsyncCallable<V> callable) {
          this.callable = checkNotNull(callable);
        }
    
        @Override
        final boolean isDone() {
          return TrustedListenableFutureTask.this.isDone();
        }
    
        @Override
        ListenableFuture<V> runInterruptibly() throws Exception {
          return checkNotNull(
              callable.call(),
              "AsyncCallable.call returned null instead of a Future. "
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Fri Oct 01 17:18:04 GMT 2021
    - 5.6K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/graph/InvalidatableSet.java

      public static final <E> InvalidatableSet<E> of(
          Set<E> delegate, Supplier<Boolean> validator, Supplier<String> errorMessage) {
        return new InvalidatableSet<>(
            checkNotNull(delegate), checkNotNull(validator), checkNotNull(errorMessage));
      }
    
      @Override
      protected Set<E> delegate() {
        validate();
        return delegate;
      }
    
      private InvalidatableSet(
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Jan 22 17:29:38 GMT 2024
    - 1.8K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/escape/CharEscaperBuilder.java

      @CanIgnoreReturnValue
      public CharEscaperBuilder addEscape(char c, String r) {
        map.put(c, checkNotNull(r));
        if (c > max) {
          max = c;
        }
        return this;
      }
    
      /** Add multiple mappings at once for a particular index. */
      @CanIgnoreReturnValue
      public CharEscaperBuilder addEscapes(char[] cs, String r) {
        checkNotNull(r);
        for (char c : cs) {
          addEscape(c, r);
        }
        return this;
      }
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Jan 18 20:55:09 GMT 2022
    - 4K bytes
    - Viewed (0)
Back to top