Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 157 for modifications (0.18 sec)

  1. android/guava-tests/test/com/google/common/collect/HashMultisetTest.java

        suite.addTest(
            MultisetTestSuiteBuilder.using(hashMultisetGenerator())
                .withFeatures(
                    CollectionSize.ANY,
                    CollectionFeature.FAILS_FAST_ON_CONCURRENT_MODIFICATION,
                    CollectionFeature.ALLOWS_NULL_VALUES,
                    CollectionFeature.SERIALIZABLE,
                    CollectionFeature.GENERAL_PURPOSE,
                    MultisetFeature.ENTRIES_ARE_VIEWS)
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Feb 19 20:34:55 GMT 2024
    - 4.4K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/collect/Multimap.java

     * }</pre>
     *
     * <h3>Views</h3>
     *
     * <p>Much of the power of the multimap API comes from the <i>view collections</i> it provides.
     * These always reflect the latest state of the multimap itself. When they support modification, the
     * changes are <i>write-through</i> (they automatically update the backing multimap). These view
     * collections are:
     *
     * <ul>
     *   <li>{@link #asMap}, mentioned above
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Sat Jun 17 14:40:53 GMT 2023
    - 15.1K bytes
    - Viewed (0)
  3. guava-tests/benchmark/com/google/common/util/concurrent/MonitorBasedPriorityBlockingQueue.java

       * will never throw {@link ConcurrentModificationException}, and guarantees to traverse elements
       * as they existed upon construction of the iterator, and may (but is not guaranteed to) reflect
       * any modifications subsequent to construction.
       *
       * @return an iterator over the elements in this queue
       */
      @CanIgnoreReturnValue // pushed down from class to method
      @Override
      public Iterator<E> iterator() {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Apr 19 19:24:36 GMT 2023
    - 19.5K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/collect/IteratorsTest.java

        cycle.remove();
        assertEquals(Collections.emptyList(), iterable);
        assertFalse(cycle.hasNext());
      }
    
      /** An Iterable whose Iterator is rigorous in checking for concurrent modification. */
      private static final class PickyIterable<E> implements Iterable<E> {
        final List<E> elements;
        int modCount = 0;
    
        PickyIterable(E... elements) {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 55.7K bytes
    - Viewed (0)
  5. guava-tests/benchmark/com/google/common/util/concurrent/MonitorBasedArrayBlockingQueue.java

       * ConcurrentModificationException}, and guarantees to traverse elements as they existed upon
       * construction of the iterator, and may (but is not guaranteed to) reflect any modifications
       * subsequent to construction.
       *
       * @return an iterator over the elements in this queue in proper sequence
       */
      @CanIgnoreReturnValue
      @Override
      public Iterator<E> iterator() {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Apr 19 19:24:36 GMT 2023
    - 22.5K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/collect/ImmutableMultiset.java

         */
        @CheckForNull ObjectCountHashMap<E> contents;
    
        /**
         * If build() has been called on the current contents multiset, we need to copy it on any future
         * modifications, or we'll modify the already-built ImmutableMultiset.
         */
        boolean buildInvoked = false;
        /**
         * In the event of a setCount(elem, 0) call, we may need to remove elements, which destroys the
    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)
  7. android/guava/src/com/google/common/collect/TreeMultiset.java

         * They may be subsequently nulled out by TreeMultiset.clear(). I think that the only place that
         * we can reference a node whose fields have been cleared is inside the iterator (and presumably
         * only under concurrent modification).
         *
         * To access these fields when you know that they are not null, call the pred() and succ()
         * methods, which perform null checks before returning the fields.
         */
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 34.2K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/collect/HashBiMap.java

            }
          } else {
            throw new IllegalArgumentException("Value already present in map: " + newValue);
          }
        }
        // we do *not* update insertion order, and it isn't a structural modification!
        deleteFromTableVToK(entry, Hashing.smearedHash(values[entry]));
        values[entry] = newValue;
        insertIntoTableVToK(entry, newValueHash);
      }
    
      /**
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Mar 06 16:06:58 GMT 2023
    - 36.4K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/collect/CompactHashMap.java

       * allocated, the value of {@code metadata} combines the number of bits in the "short hash", in
       * its bottom {@value CompactHashing#HASH_TABLE_BITS_MAX_BITS} bits, with a modification count in
       * the remaining bits that is used to detect concurrent modification during iteration.
       */
      private transient int metadata;
    
      /** The number of elements contained in the set. */
      private transient int size;
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Jun 26 21:02:13 GMT 2023
    - 35.8K bytes
    - Viewed (0)
  10. guava/src/com/google/common/collect/ArrayTable.java

     * an {@code ArrayTable} concurrently and one of the threads modifies its value, there is no
     * guarantee that the new value will be fully visible to the other threads. To guarantee that
     * modifications are visible, synchronize access to the table. Unlike other {@code Table}
     * implementations, synchronization is unnecessary between a thread that writes to one cell and a
     * thread that reads from another.
     *
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Thu Feb 22 21:19:52 GMT 2024
    - 26.9K bytes
    - Viewed (0)
Back to top