Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 237 for checkNotNull (0.23 sec)

  1. guava-tests/test/com/google/common/util/concurrent/UncheckedThrowingFuture.java

        UncheckedThrowingFuture<V> future = new UncheckedThrowingFuture<V>();
        future.complete(checkNotNull(error));
        return future;
      }
    
      public static <V> ListenableFuture<V> throwingRuntimeException(RuntimeException e) {
        UncheckedThrowingFuture<V> future = new UncheckedThrowingFuture<V>();
        future.complete(checkNotNull(e));
        return future;
      }
    
      public static <V> UncheckedThrowingFuture<V> incomplete() {
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Wed Sep 12 20:02:10 GMT 2018
    - 3.2K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/primitives/UnsignedInteger.java

        return fromIntBits(this.value + checkNotNull(val).value);
      }
    
      /**
       * Returns the result of subtracting this and {@code val}. If the result would be negative,
       * returns the low 32 bits of the result.
       *
       * @since 14.0
       */
      public UnsignedInteger minus(UnsignedInteger val) {
        return fromIntBits(value - checkNotNull(val).value);
      }
    
      /**
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Feb 23 18:45:50 GMT 2023
    - 8.3K bytes
    - Viewed (0)
  3. guava/src/com/google/common/cache/CacheLoader.java

       *     the thread's interrupt status is set
       * @since 11.0
       */
      @GwtIncompatible // Futures
      public ListenableFuture<V> reload(K key, V oldValue) throws Exception {
        checkNotNull(key);
        checkNotNull(oldValue);
        return Futures.immediateFuture(load(key));
      }
    
      /**
       * Computes or retrieves the values corresponding to {@code keys}. This method is called by {@link
       * LoadingCache#getAll}.
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Mon Dec 19 20:20:14 GMT 2022
    - 9.5K bytes
    - Viewed (0)
  4. 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)
  5. 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)
  6. android/guava/src/com/google/common/base/CaseFormat.java

       * the behavior of this method is undefined but we make a reasonable effort at converting anyway.
       */
      public final String to(CaseFormat format, String str) {
        checkNotNull(format);
        checkNotNull(str);
        return (format == this) ? str : convert(format, str);
      }
    
      /** Enum values can override for performance reasons. */
      String convert(CaseFormat format, String s) {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Dec 19 20:20:14 GMT 2022
    - 6.3K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/collect/SingletonImmutableTable.java

        this.singleRowKey = checkNotNull(rowKey);
        this.singleColumnKey = checkNotNull(columnKey);
        this.singleValue = checkNotNull(value);
      }
    
      SingletonImmutableTable(Cell<R, C, V> cell) {
        this(cell.getRowKey(), cell.getColumnKey(), cell.getValue());
      }
    
      @Override
      public ImmutableMap<R, V> column(C columnKey) {
        checkNotNull(columnKey);
        return containsColumn(columnKey)
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Nov 30 21:54:06 GMT 2023
    - 2.5K bytes
    - Viewed (0)
  8. guava-testlib/src/com/google/common/testing/RelationshipTester.java

          String relationshipName,
          String hashName,
          ItemReporter itemReporter) {
        this.equivalence = checkNotNull(equivalence);
        this.relationshipName = checkNotNull(relationshipName);
        this.hashName = checkNotNull(hashName);
        this.itemReporter = checkNotNull(itemReporter);
      }
    
      // TODO(cpovirk): should we reject null items, since the tests already check null automatically?
      @CanIgnoreReturnValue
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Tue Apr 25 11:57:12 GMT 2023
    - 5.9K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/collect/SortedIterables.java

       * {@code comparator}.
       */
      public static boolean hasSameComparator(Comparator<?> comparator, Iterable<?> elements) {
        checkNotNull(comparator);
        checkNotNull(elements);
        Comparator<?> comparator2;
        if (elements instanceof SortedSet) {
          comparator2 = comparator((SortedSet<?>) elements);
        } else if (elements instanceof SortedIterable) {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Jun 30 10:33:07 GMT 2021
    - 2K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/collect/TreeTraverser.java

          this.stack = new ArrayDeque<>();
          stack.addLast(Iterators.singletonIterator(checkNotNull(root)));
        }
    
        @Override
        public boolean hasNext() {
          return !stack.isEmpty();
        }
    
        @Override
        public T next() {
          Iterator<T> itr = stack.getLast(); // throws NSEE if empty
          T result = checkNotNull(itr.next());
          if (!itr.hasNext()) {
            stack.removeLast();
          }
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 8.2K bytes
    - Viewed (0)
Back to top