Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 10 for deletions (0.2 sec)

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

     * a traditional {@code HashMap} implementation which stores keys and count values as map entries,
     * {@code ObjectCountHashMap} minimizes object allocation and reduces memory footprint.
     *
     * <p>In the absence of element deletions, this will iterate over elements in insertion order.
     */
    @GwtCompatible(serializable = true, emulated = true)
    @ElementTypesAreNonnullByDefault
    class ObjectCountHashMap<K extends @Nullable Object> {
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Jun 01 22:07:10 GMT 2021
    - 15K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/util/concurrent/WrappingExecutorServiceTest.java

    /**
     * Test for {@link WrappingExecutorService}
     *
     * @author Chris Nokleberg
     */
    public class WrappingExecutorServiceTest extends TestCase {
      private static final String RESULT_VALUE = "ran";
      // Uninteresting delegations
      public void testDelegations() throws InterruptedException {
        MockExecutor mock = new MockExecutor();
        TestExecutor testExecutor = new TestExecutor(mock);
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Jan 05 19:41:03 GMT 2023
    - 9.8K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/collect/ImmutableMultiset.java

          if (count == 0 && !isLinkedHash) {
            contents = new ObjectCountLinkedHashMap<E>(contents);
            isLinkedHash = true;
            // to preserve insertion order through deletions, we have to switch to an actual linked
            // implementation at least for now, but this should be a super rare case
          } else if (buildInvoked) {
            contents = new ObjectCountHashMap<E>(contents);
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 22.6K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/math/Quantiles.java

        int required = allRequired[requiredChosen];
    
        // ...do the first selection...
        selectInPlace(required, array, from, to);
    
        // ...then recursively perform the selections in the range below...
        int requiredBelow = requiredChosen - 1;
        while (requiredBelow >= requiredFrom && allRequired[requiredBelow] == required) {
          requiredBelow--; // skip duplicates of required in the range below
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Fri May 12 17:02:53 GMT 2023
    - 29.9K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/collect/Multisets.java

       * multiset1}, with repeated occurrences of the same element appearing consecutively.
       *
       * <p>Results are undefined if {@code multiset1} and {@code multiset2} are based on different
       * equivalence relations (as {@code HashMultiset} and {@code TreeMultiset} are).
       *
       * @since 14.0
       */
      public static <E extends @Nullable Object> Multiset<E> union(
    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)
  6. guava-tests/test/com/google/common/cache/LocalCacheMapComputeTest.java

            });
        assertTrue(1 >= cache.size());
      }
    
      public void testCompute() {
        cache.put(key, "1");
        // simultaneous deletion
        doParallelCacheOp(
            count,
            n -> {
              cache.asMap().compute(key, (k, v) -> null);
            });
        assertEquals(0, cache.size());
      }
    
      public void testComputeWithLoad() {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 6.3K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/io/FileBackedOutputStream.java

     * in CVE number once it's available.)
     *
     * <p>Temporary files created by this stream may live in the local filesystem until either:
     *
     * <ul>
     *   <li>{@link #reset} is called (removing the data in this stream and deleting the file), or...
     *   <li>this stream (or, more precisely, its {@link #asByteSource} view) is finalized during
     *       garbage collection, <strong>AND</strong> this stream was not constructed with {@linkplain
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Feb 22 17:40:56 GMT 2024
    - 8.2K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/util/concurrent/WrappingExecutorServiceTest.java

    /**
     * Test for {@link WrappingExecutorService}
     *
     * @author Chris Nokleberg
     */
    public class WrappingExecutorServiceTest extends TestCase {
      private static final String RESULT_VALUE = "ran";
      // Uninteresting delegations
      public void testDelegations() throws InterruptedException {
        MockExecutor mock = new MockExecutor();
        TestExecutor testExecutor = new TestExecutor(mock);
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Thu Jan 05 19:41:03 GMT 2023
    - 9.8K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/collect/Sets.java

       * that is not contained in {@code set1}.
       *
       * <p>Results are undefined if {@code set1} and {@code set2} are sets based on different
       * equivalence relations, for example if {@code set1} is a {@link HashSet} and {@code set2} is a
       * {@link TreeSet} or the {@link Map#keySet} of an {@code IdentityHashMap}.
       */
      public static <E extends @Nullable Object> SetView<E> union(
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 77.4K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/collect/Maps.java

             *
             * TODO(cpovirk): Consider checking onlyOnRight.containsKey instead of right.containsKey.
             * That could change behavior if the input maps use different equivalence relations (and so
             * a key that appears once in `right` might appear multiple times in `left`). We don't
             * guarantee behavior in that case, anyway, and the current behavior is likely undesirable.
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 159.6K bytes
    - Viewed (0)
Back to top