Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 4 of 4 for RegularImmutableSet (0.09 seconds)

The search processing time has exceeded the limit. The displayed results may be partial.

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

     */
    @GwtCompatible
    @SuppressWarnings("serial") // uses writeReplace(), not default serialization
    final class RegularImmutableSet<E> extends ImmutableSet<E> {
      private static final Object[] EMPTY_ARRAY = new Object[0];
      static final RegularImmutableSet<Object> EMPTY =
          new RegularImmutableSet<>(EMPTY_ARRAY, 0, EMPTY_ARRAY, 0, 0);
    
      // The first `size` elements are non-null.
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Fri Dec 26 20:08:09 GMT 2025
    - 3.6K bytes
    - Click Count (0)
  2. guava/src/com/google/common/collect/RegularImmutableSet.java

     */
    @GwtCompatible
    @SuppressWarnings("serial") // uses writeReplace(), not default serialization
    final class RegularImmutableSet<E> extends ImmutableSet.CachingAsList<E> {
      private static final Object[] EMPTY_ARRAY = new Object[0];
      static final RegularImmutableSet<Object> EMPTY =
          new RegularImmutableSet<>(EMPTY_ARRAY, 0, EMPTY_ARRAY, 0);
    
      private final transient Object[] elements;
      private final transient int hashCode;
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Fri Dec 26 20:08:09 GMT 2025
    - 3.8K bytes
    - Click Count (0)
  3. guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/ImmutableSet.java

      }
    
      // Casting to any type is safe because the set will never hold any elements.
      @SuppressWarnings({"unchecked"})
      public static <E> ImmutableSet<E> of() {
        return (ImmutableSet<E>) RegularImmutableSet.EMPTY;
      }
    
      public static <E> ImmutableSet<E> of(E e1) {
        return new SingletonImmutableSet<E>(e1);
      }
    
      @SuppressWarnings("unchecked")
      public static <E> ImmutableSet<E> of(E e1, E e2) {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Sep 22 21:07:18 GMT 2025
    - 8.2K bytes
    - Click Count (0)
  4. android/guava/src/com/google/common/collect/ImmutableSet.java

       */
      @SuppressWarnings({"unchecked"}) // fully variant implementation (never actually produces any Es)
      public static <E> ImmutableSet<E> of() {
        return (ImmutableSet<E>) RegularImmutableSet.EMPTY;
      }
    
      /**
       * Returns an immutable set containing the given element. Preferred over {@link
       * Collections#singleton} for code consistency, {@code null} rejection, and because the return
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Sat Oct 11 14:54:00 GMT 2025
    - 22.4K bytes
    - Click Count (0)
Back to Top