Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 136 for Klinger (0.16 sec)

  1. android/guava/src/com/google/common/collect/TopKSelector.java

            @SuppressWarnings("nullness") // safe because we pass sort() a range that contains real Ts
            T[] castBuffer = (T[]) buffer;
            // We've already taken O(k log k), let's make sure we don't take longer than O(k log k).
            Arrays.sort(castBuffer, left, right + 1, comparator);
            break;
          }
        }
        bufferSize = k;
    
        threshold = uncheckedCastNullableTToT(buffer[minThresholdPosition]);
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 11.2K bytes
    - Viewed (0)
  2. android/guava-testlib/src/com/google/common/testing/GcFinalization.java

     *     return map.isEmpty();
     *   }
     * });
     * }</pre>
     *
     * <p>Even if your non-test code does not use finalization, you can use this class to test for
     * leaks, by ensuring that objects are no longer strongly referenced:
     *
     * <pre>{@code
     * // Helper function keeps victim stack-unreachable.
     * private WeakReference<Foo> fooWeakRef() {
     *   Foo x = ....;
     *   WeakReference<Foo> weakRef = new WeakReference<>(x);
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 22 17:40:56 GMT 2024
    - 11.6K bytes
    - Viewed (0)
  3. android/guava-testlib/src/com/google/common/collect/testing/MapInterfaceTest.java

          int initialSize = map.size();
          iterator.next();
          iterator.remove();
          assertEquals(initialSize - 1, map.size());
          // (We can't assert that the values collection no longer contains the
          // removed value, because the underlying map can have multiple mappings
          // to the same value.)
          assertInvariants(map);
          try {
            iterator.remove();
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Feb 21 16:49:06 GMT 2024
    - 45.9K bytes
    - Viewed (2)
  4. android/guava/src/com/google/common/hash/HashFunction.java

     *       are called <i>cryptographic hash functions</i>. But, whenever it is learned that either of
     *       these feats has become computationally feasible, the function is deemed "broken" and should
     *       no longer be used for secure purposes. (This is the likely eventual fate of <i>all</i>
     *       cryptographic hashes.)
     *   <li><b>fast:</b> perhaps self-explanatory, but often the most important consideration.
     * </ul>
     *
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue May 25 18:22:59 GMT 2021
    - 10.9K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/base/Converter.java

       * conversion is done lazily.
       *
       * <p>The returned iterable's iterator supports {@code remove()} if the input iterator does. After
       * a successful {@code remove()} call, {@code fromIterable} no longer contains the corresponding
       * element.
       */
      /*
       * Just as Converter could implement `Function<@Nullable A, @Nullable B>` instead of `Function<A,
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 15 16:12:13 GMT 2024
    - 23K bytes
    - Viewed (0)
  6. guava/src/com/google/common/collect/ImmutableSet.java

       * first specified. That is, if multiple elements are {@linkplain Object#equals equal}, all except
       * the first are ignored.
       *
       * <p>The array {@code others} must not be longer than {@code Integer.MAX_VALUE - 6}.
       *
       * @since 3.0 (source-compatible since 2.0)
       */
      @SafeVarargs // For Eclipse. For internal javac we have disabled this pointless type of warning.
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 35.4K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/util/concurrent/AbstractFutureTest.java

              }
            };
        assertThat(testFuture.toString())
            .matches("[^\\[]+\\[status=SUCCESS, result=\\[java.lang.Boolean@\\w+\\]\\]");
      }
    
      /**
       * This test attempts to cause a future to wait for longer than it was requested to from a timed
       * get() call. As measurements of time are prone to flakiness, it tries to assert based on ranges
       * derived from observing how much time actually passed for various operations.
       */
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Feb 13 14:28:25 GMT 2024
    - 46.8K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/collect/AbstractMapBasedMultimap.java

          WrappedIterator(Iterator<V> delegateIterator) {
            this.delegateIterator = delegateIterator;
          }
    
          /**
           * If the delegate changed since the iterator was created, the iterator is no longer valid.
           */
          void validateIterator() {
            refreshIfEmpty();
            if (delegate != originalDelegate) {
              throw new ConcurrentModificationException();
            }
          }
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Fri Oct 13 14:11:58 GMT 2023
    - 46.6K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/collect/ImmutableMap.java

         * use `get(key) ?: defaultValue` instead of this method, anyway.
         */
        V result = get(key);
        // TODO(b/192579700): Use a ternary once it no longer confuses our nullness checker.
        if (result != null) {
          return result;
        } else {
          return defaultValue;
        }
      }
    
    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)
  10. guava-tests/test/com/google/common/util/concurrent/FuturesTest.java

       * it's going to complete at all).
       *
       * <p>[*] To avoid hangs, I've disabled the in-thread calls. This makes the test take (very
       * roughly) 2.5s longer. (2.5s is also the maximum length of time we will wait for a timed get
       * that is expected to succeed; the fact that the numbers match is only a coincidence.) See the
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Tue Feb 20 17:00:05 GMT 2024
    - 144.5K bytes
    - Viewed (0)
Back to top