Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for RegularImmutableList (0.15 sec)

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

    @ElementTypesAreNonnullByDefault
    class RegularImmutableList<E> extends ImmutableList<E> {
      static final ImmutableList<Object> EMPTY = new RegularImmutableList<>(new Object[0], 0);
    
      // The first `size` elements are non-null.
      @VisibleForTesting final transient @Nullable Object[] array;
      private final transient int size;
    
      RegularImmutableList(@Nullable Object[] array, int size) {
        this.array = array;
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 2.8K bytes
    - Viewed (0)
  2. guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/ImmutableList.java

        return new RegularImmutableList<E>(ImmutableList.<E>nullCheckedList(e1, e2, e3));
      }
    
      public static <E> ImmutableList<E> of(E e1, E e2, E e3, E e4) {
        return new RegularImmutableList<E>(ImmutableList.<E>nullCheckedList(e1, e2, e3, e4));
      }
    
      public static <E> ImmutableList<E> of(E e1, E e2, E e3, E e4, E e5) {
        return new RegularImmutableList<E>(ImmutableList.<E>nullCheckedList(e1, e2, e3, e4, e5));
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Jun 14 22:14:46 UTC 2024
    - 11.1K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/collect/ImmutableList.java

        }
      }
    
      /** A singleton implementation of iterator() for the empty ImmutableList. */
      // TODO(b/345814817): Move this to RegularImmutableList?
      @SuppressWarnings("ClassInitializationDeadlock")
      private static final UnmodifiableListIterator<Object> EMPTY_ITR =
          new Itr<Object>(RegularImmutableList.EMPTY, 0);
    
      static class Itr<E> extends AbstractIndexedListIterator<E> {
        private final ImmutableList<E> list;
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 16 21:21:17 UTC 2024
    - 27.7K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/collect/ImmutableListTest.java

        Object[] builderArray = builder.contents;
        for (int i = 0; i < 10; i++) {
          builder.add(i);
        }
        Object[] builderArrayAfterAdds = builder.contents;
        RegularImmutableList<Integer> list = (RegularImmutableList<Integer>) builder.build();
        Object[] listInternalArray = list.array;
        assertSame(builderArray, builderArrayAfterAdds);
        assertSame(builderArray, listInternalArray);
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 24.1K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/collect/ImmutableListTest.java

        Object[] builderArray = builder.contents;
        for (int i = 0; i < 10; i++) {
          builder.add(i);
        }
        Object[] builderArrayAfterAdds = builder.contents;
        RegularImmutableList<Integer> list = (RegularImmutableList<Integer>) builder.build();
        Object[] listInternalArray = list.array;
        assertSame(builderArray, builderArrayAfterAdds);
        assertSame(builderArray, listInternalArray);
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 23.5K bytes
    - Viewed (0)
  6. guava/src/com/google/common/collect/ImmutableList.java

    import static com.google.common.collect.CollectPreconditions.checkNonnegative;
    import static com.google.common.collect.ObjectArrays.checkElementsNotNull;
    import static com.google.common.collect.RegularImmutableList.EMPTY;
    import static java.util.Objects.requireNonNull;
    
    import com.google.common.annotations.GwtCompatible;
    import com.google.common.annotations.GwtIncompatible;
    import com.google.common.annotations.J2ktIncompatible;
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Aug 16 19:14:45 UTC 2024
    - 30.5K bytes
    - Viewed (0)
  7. guava/src/com/google/common/collect/ImmutableSortedMap.java

                prevKey = key;
              }
            }
            return new ImmutableSortedMap<>(
                new RegularImmutableSortedSet<K>(new RegularImmutableList<K>(keys), comparator),
                new RegularImmutableList<V>(values));
        }
      }
    
      /**
       * Returns a builder that creates immutable sorted maps whose keys are ordered by their natural
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 50.4K bytes
    - Viewed (0)
Back to top