Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 269 for checkNotNull (0.21 sec)

  1. guava/src/com/google/common/base/Preconditions.java

        }
      }
    
      /*
       * Preconditions.checkNotNull is *intended* for performing eager null checks on parameters that a
       * nullness checker can already "prove" are non-null. That means that the first parameter to
       * checkNotNull *should* be annotated to require it to be non-null.
       *
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Wed Feb 14 15:46:55 GMT 2024
    - 52.9K bytes
    - Viewed (0)
  2. guava/src/com/google/common/collect/ContiguousSet.java

        return headSetImpl(checkNotNull(toElement), false);
      }
    
      /** @since 12.0 */
      @GwtIncompatible // NavigableSet
      @Override
      public ContiguousSet<C> headSet(C toElement, boolean inclusive) {
        return headSetImpl(checkNotNull(toElement), inclusive);
      }
    
      @Override
      public ContiguousSet<C> subSet(C fromElement, C toElement) {
        checkNotNull(fromElement);
        checkNotNull(toElement);
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Thu Nov 30 21:54:06 GMT 2023
    - 9.9K bytes
    - Viewed (0)
  3. guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/ImmutableSet.java

          // TODO: Remove "ImmutableSet.<E>" when eclipse bug is fixed.
          return ImmutableSet.<E>of(first);
        }
    
        Set<E> delegate = Sets.newLinkedHashSet();
        delegate.add(checkNotNull(first));
        do {
          delegate.add(checkNotNull(elements.next()));
        } while (elements.hasNext());
    
        return unsafeDelegate(delegate);
      }
    
      // Factory methods that skips the null checks on elements, only used when
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Jan 23 18:43:40 GMT 2024
    - 8.3K bytes
    - Viewed (0)
  4. guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/ImmutableSortedSet.java

          Comparator<? super E> comparator, E... elements) {
        checkNotNull(elements);
        switch (elements.length) {
          case 0:
            return emptySet(comparator);
          default:
            SortedSet<E> delegate = new TreeSet<E>(comparator);
            for (E element : elements) {
              checkNotNull(element);
              delegate.add(element);
            }
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Feb 27 19:19:19 GMT 2024
    - 15.3K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/io/BaseEncoding.java

          this(name, chars, decodabetFor(chars), /* ignoreCase= */ false);
        }
    
        private Alphabet(String name, char[] chars, byte[] decodabet, boolean ignoreCase) {
          this.name = checkNotNull(name);
          this.chars = checkNotNull(chars);
          try {
            this.bitsPerChar = log2(chars.length, UNNECESSARY);
          } catch (ArithmeticException e) {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Fri Mar 15 16:33:32 GMT 2024
    - 41.7K bytes
    - Viewed (0)
  6. guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/ImmutableMap.java

              Function<? super T, ? extends K> keyFunction,
              Function<? super T, ? extends V> valueFunction,
              BinaryOperator<V> mergeFunction) {
        checkNotNull(keyFunction);
        checkNotNull(valueFunction);
        checkNotNull(mergeFunction);
        return Collectors.collectingAndThen(
            Collectors.toMap(keyFunction, valueFunction, mergeFunction, LinkedHashMap::new),
            ImmutableMap::copyOf);
      }
    
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Feb 27 19:19:19 GMT 2024
    - 17.1K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/collect/Multisets.java

          return result;
        }
        return new UnmodifiableMultiset<>(checkNotNull(multiset));
      }
    
      /**
       * Simply returns its argument.
       *
       * @deprecated no need to use this
       * @since 10.0
       */
      @Deprecated
      public static <E> Multiset<E> unmodifiableMultiset(ImmutableMultiset<E> multiset) {
        return checkNotNull(multiset);
      }
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 41.7K bytes
    - Viewed (0)
  8. guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/SingletonImmutableBiMap.java

      SingletonImmutableBiMap(K key, V value) {
        super(Collections.singletonMap(checkNotNull(key), checkNotNull(value)));
        this.singleKey = key;
        this.singleValue = value;
      }
    
      private SingletonImmutableBiMap(K key, V value, SingletonImmutableBiMap<V, K> inverse) {
        super(Collections.singletonMap(checkNotNull(key), checkNotNull(value)));
        this.singleKey = key;
        this.singleValue = value;
        this.inverse = inverse;
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Jan 23 18:43:40 GMT 2024
    - 2.1K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/util/concurrent/ImmediateFuture.java

        this.value = value;
      }
    
      @Override
      @SuppressWarnings("CatchingUnchecked") // sneaky checked exception
      public void addListener(Runnable listener, Executor executor) {
        checkNotNull(listener, "Runnable was null.");
        checkNotNull(executor, "Executor was null.");
        try {
          executor.execute(listener);
        } catch (Exception e) { // sneaky checked exception
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Dec 13 19:45:20 GMT 2023
    - 3.5K bytes
    - Viewed (0)
  10. guava/src/com/google/common/collect/Iterators.java

          Iterator<? extends T> a,
          Iterator<? extends T> b,
          Iterator<? extends T> c,
          Iterator<? extends T> d) {
        checkNotNull(a);
        checkNotNull(b);
        checkNotNull(c);
        checkNotNull(d);
        return concat(consumingForArray(a, b, c, d));
      }
    
      /**
       * Combines multiple iterators into a single iterator. The returned iterator iterates across the
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Tue Jan 30 00:14:39 GMT 2024
    - 50.5K bytes
    - Viewed (0)
Back to top