Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for RegularImmutableAsList (0.23 sec)

  1. guava/src/com/google/common/collect/RegularImmutableAsList.java

    @ElementTypesAreNonnullByDefault
    class RegularImmutableAsList<E> extends ImmutableAsList<E> {
      private final ImmutableCollection<E> delegate;
      private final ImmutableList<? extends E> delegateList;
    
      RegularImmutableAsList(ImmutableCollection<E> delegate, ImmutableList<? extends E> delegateList) {
        this.delegate = delegate;
        this.delegateList = delegateList;
      }
    
      RegularImmutableAsList(ImmutableCollection<E> delegate, Object[] array) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Nov 30 21:54:06 UTC 2023
    - 3K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/collect/RegularImmutableAsList.java

    @ElementTypesAreNonnullByDefault
    class RegularImmutableAsList<E> extends ImmutableAsList<E> {
      private final ImmutableCollection<E> delegate;
      private final ImmutableList<? extends E> delegateList;
    
      RegularImmutableAsList(ImmutableCollection<E> delegate, ImmutableList<? extends E> delegateList) {
        this.delegate = delegate;
        this.delegateList = delegateList;
      }
    
      RegularImmutableAsList(ImmutableCollection<E> delegate, Object[] array) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Nov 30 21:54:06 UTC 2023
    - 3K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/collect/RegularImmutableAsListTest.java

    import junit.framework.TestCase;
    import org.checkerframework.checker.nullness.qual.Nullable;
    
    /**
     * Tests for {@link RegularImmutableAsList}.
     *
     * @author Louis Wasserman
     */
    @GwtCompatible
    @ElementTypesAreNonnullByDefault
    public class RegularImmutableAsListTest extends TestCase {
      /**
       * RegularImmutableAsList should assume its input is null-free without checking, because it only
       * gets invoked from other immutable collections.
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Feb 21 10:16:44 UTC 2024
    - 1.4K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/collect/RegularImmutableAsListTest.java

    import junit.framework.TestCase;
    import org.checkerframework.checker.nullness.qual.Nullable;
    
    /**
     * Tests for {@link RegularImmutableAsList}.
     *
     * @author Louis Wasserman
     */
    @GwtCompatible
    @ElementTypesAreNonnullByDefault
    public class RegularImmutableAsListTest extends TestCase {
      /**
       * RegularImmutableAsList should assume its input is null-free without checking, because it only
       * gets invoked from other immutable collections.
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Feb 21 10:16:44 UTC 2024
    - 1.4K bytes
    - Viewed (0)
  5. guava/src/com/google/common/collect/ImmutableSortedAsList.java

     *
     * @author Jared Levy
     * @author Louis Wasserman
     */
    @GwtCompatible(emulated = true)
    @SuppressWarnings("serial")
    @ElementTypesAreNonnullByDefault
    final class ImmutableSortedAsList<E> extends RegularImmutableAsList<E>
        implements SortedIterable<E> {
      ImmutableSortedAsList(ImmutableSortedSet<E> backingSet, ImmutableList<E> backingList) {
        super(backingSet, backingList);
      }
    
      @Override
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Nov 30 21:54:06 UTC 2023
    - 3.6K bytes
    - Viewed (0)
  6. guava/src/com/google/common/collect/ImmutableMapEntrySet.java

        }
    
        @Override
        public void forEach(Consumer<? super Entry<K, V>> action) {
          entries.forEach(action);
        }
    
        @Override
        ImmutableList<Entry<K, V>> createAsList() {
          return new RegularImmutableAsList<>(this, entries);
        }
    
        // redeclare to help optimizers with b/310253115
        @SuppressWarnings("RedundantOverride")
        @Override
        @J2ktIncompatible // serialization
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Nov 30 21:54:06 UTC 2023
    - 4.1K bytes
    - Viewed (0)
  7. guava/src/com/google/common/collect/RegularImmutableSet.java

        return offset + elements.length;
      }
    
      @Override
      ImmutableList<E> createAsList() {
        return (table.length == 0)
            ? ImmutableList.<E>of()
            : new RegularImmutableAsList<E>(this, elements);
      }
    
      @Override
      boolean isPartialView() {
        return false;
      }
    
      @Override
      public int hashCode() {
        return hashCode;
      }
    
      @Override
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 3.9K bytes
    - Viewed (0)
  8. guava/src/com/google/common/collect/ImmutableCollection.java

        switch (size()) {
          case 0:
            return ImmutableList.of();
          case 1:
            return ImmutableList.of(iterator().next());
          default:
            return new RegularImmutableAsList<>(this, toArray());
        }
      }
    
      /**
       * Returns {@code true} if this immutable collection's implementation contains references to
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Aug 12 16:59:15 UTC 2024
    - 18.8K bytes
    - Viewed (0)
Back to top