Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for RegularImmutableList (0.24 sec)

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

    import java.util.List;
    
    /**
     * GWT emulated version of {@link RegularImmutableList}.
     *
     * @author Hayward Chan
     */
    final class RegularImmutableList<E> extends ForwardingImmutableList<E> {
      static final ImmutableList<Object> EMPTY = new RegularImmutableList<Object>(emptyList());
    
      private final List<E> delegate;
    
      RegularImmutableList(List<E> delegate) {
        // TODO(cpovirk): avoid redundant unmodifiableList wrapping
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Aug 06 14:59:07 UTC 2025
    - 1.3K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/collect/RegularImmutableList.java

    @SuppressWarnings("serial") // uses writeReplace(), not default serialization
    final 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 Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 2.7K bytes
    - Viewed (0)
  3. 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 Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Aug 06 18:32:41 UTC 2025
    - 11.1K 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 Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 24.2K bytes
    - Viewed (0)
  5. 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);
    
      private static final class Itr<E> extends AbstractIndexedListIterator<E> {
        private final ImmutableList<E> list;
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Aug 09 01:14:59 UTC 2025
    - 27.5K bytes
    - Viewed (0)
  6. 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 Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 23.6K bytes
    - Viewed (0)
Back to top