Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 14 for newConcurrentHashSet (0.17 seconds)

  1. guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/Platform.java

        return Sets.newHashSetWithExpectedSize(expectedSize);
      }
    
      static <E extends @Nullable Object> Set<E> newConcurrentHashSet() {
        // GWT's ConcurrentHashMap is a wrapper around HashMap, but it rejects null keys, which matches
        // the behaviour of the non-GWT implementation of newConcurrentHashSet().
        // On the other hand HashSet might be better for code size if apps aren't
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Fri Jan 23 17:16:53 GMT 2026
    - 5.3K bytes
    - Click Count (0)
  2. guava/src/com/google/common/collect/Platform.java

        return Sets.newHashSetWithExpectedSize(expectedSize);
      }
    
      /** Returns the platform preferred implementation of a thread-safe hash set. */
      static <E> Set<E> newConcurrentHashSet() {
        return ConcurrentHashMap.newKeySet();
      }
    
      /**
       * Returns the platform preferred implementation of an insertion ordered set based on a hash
       * table.
       */
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Fri Jan 23 17:16:53 GMT 2026
    - 4.7K bytes
    - Click Count (0)
  3. android/guava/src/com/google/common/util/concurrent/AggregateFutureState.java

     * or implied. See the License for the specific language governing permissions and limitations under
     * the License.
     */
    
    package com.google.common.util.concurrent;
    
    import static com.google.common.collect.Sets.newConcurrentHashSet;
    import static java.util.Objects.requireNonNull;
    import static java.util.concurrent.atomic.AtomicIntegerFieldUpdater.newUpdater;
    import static java.util.concurrent.atomic.AtomicReferenceFieldUpdater.newUpdater;
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Aug 07 16:05:33 GMT 2025
    - 8.5K bytes
    - Click Count (0)
  4. android/guava-testlib/src/com/google/common/testing/GcFinalization.java

     * See the License for the specific language governing permissions and
     * limitations under the License.
     */
    
    package com.google.common.testing;
    
    import static com.google.common.collect.Sets.newConcurrentHashSet;
    import static java.lang.Math.max;
    import static java.util.concurrent.TimeUnit.SECONDS;
    
    import com.google.common.annotations.GwtIncompatible;
    import com.google.common.annotations.J2ktIncompatible;
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Mar 12 20:19:19 GMT 2026
    - 12.3K bytes
    - Click Count (0)
  5. android/guava/src/com/google/common/io/FileBackedOutputStream.java

     */
    
    package com.google.common.io;
    
    import static com.google.common.base.Preconditions.checkArgument;
    import static com.google.common.base.Throwables.throwIfUnchecked;
    import static com.google.common.collect.Sets.newConcurrentHashSet;
    import static java.util.Objects.requireNonNull;
    
    import com.google.common.annotations.Beta;
    import com.google.common.annotations.GwtIncompatible;
    import com.google.common.annotations.J2ktIncompatible;
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Sat Mar 07 17:30:49 GMT 2026
    - 12.4K bytes
    - Click Count (0)
  6. guava-testlib/src/com/google/common/testing/GcFinalization.java

     * See the License for the specific language governing permissions and
     * limitations under the License.
     */
    
    package com.google.common.testing;
    
    import static com.google.common.collect.Sets.newConcurrentHashSet;
    import static java.lang.Math.max;
    import static java.util.concurrent.TimeUnit.SECONDS;
    
    import com.google.common.annotations.GwtIncompatible;
    import com.google.common.annotations.J2ktIncompatible;
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Mar 12 20:19:19 GMT 2026
    - 12.3K bytes
    - Click Count (0)
  7. android/guava/src/com/google/common/collect/Sets.java

       * @throws NullPointerException if {@code elements} or any of its contents is null
       * @since 15.0
       */
      public static <E> Set<E> newConcurrentHashSet(Iterable<? extends E> elements) {
        Set<E> set = newConcurrentHashSet();
        Iterables.addAll(set, elements);
        return set;
      }
    
      // LinkedHashSet
    
      /**
       * Creates a <i>mutable</i>, empty {@code LinkedHashSet} instance.
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Feb 23 19:19:10 GMT 2026
    - 81.4K bytes
    - Click Count (0)
  8. guava/src/com/google/common/collect/Sets.java

       * set is serializable.
       *
       * @return a new, empty thread-safe {@code Set}
       * @since 15.0
       */
      public static <E> Set<E> newConcurrentHashSet() {
        return Platform.newConcurrentHashSet();
      }
    
      /**
       * Creates a thread-safe set backed by a hash map and containing the given elements. The set is
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Feb 23 19:19:10 GMT 2026
    - 83K bytes
    - Click Count (0)
  9. android/guava-tests/test/com/google/common/base/FinalizableReferenceQueueTest.java

      static class MyServerExampleWithFrq implements Closeable {
        private static final FinalizableReferenceQueue frq = new FinalizableReferenceQueue();
    
        private static final Set<Reference<?>> references = Sets.newConcurrentHashSet();
    
        private final ServerSocket serverSocket;
    
        private MyServerExampleWithFrq() throws IOException {
          this.serverSocket = new ServerSocket(0);
        }
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Fri Feb 27 21:20:19 GMT 2026
    - 8.6K bytes
    - Click Count (0)
  10. android/guava/src/com/google/common/util/concurrent/ClosingFuture.java

    import static com.google.common.base.Preconditions.checkState;
    import static com.google.common.base.Throwables.throwIfUnchecked;
    import static com.google.common.collect.Lists.asList;
    import static com.google.common.collect.Sets.newConcurrentHashSet;
    import static com.google.common.util.concurrent.ClosingFuture.Status.CLOSED;
    import static com.google.common.util.concurrent.ClosingFuture.Status.CLOSING;
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Apr 01 17:27:13 GMT 2026
    - 101.7K bytes
    - Click Count (0)
Back to Top