Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 13 for delegateCollection (0.09 seconds)

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

      abstract ImmutableCollection<E> delegateCollection();
    
      @Override
      public boolean contains(@Nullable Object target) {
        // The collection's contains() is at least as fast as ImmutableList's
        // and is often faster.
        return delegateCollection().contains(target);
      }
    
      @Override
      public int size() {
        return delegateCollection().size();
      }
    
      @Override
      public boolean isEmpty() {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Sat Aug 09 01:14:59 GMT 2025
    - 2.5K bytes
    - Click Count (0)
  2. guava/src/com/google/common/collect/ImmutableAsList.java

      abstract ImmutableCollection<E> delegateCollection();
    
      @Override
      public boolean contains(@Nullable Object target) {
        // The collection's contains() is at least as fast as ImmutableList's
        // and is often faster.
        return delegateCollection().contains(target);
      }
    
      @Override
      public int size() {
        return delegateCollection().size();
      }
    
      @Override
      public boolean isEmpty() {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Sat Aug 09 01:14:59 GMT 2025
    - 2.5K bytes
    - Click Count (0)
  3. guava/src/com/google/common/collect/ImmutableSortedAsList.java

        super(backingSet, backingList);
      }
    
      @Override
      ImmutableSortedSet<E> delegateCollection() {
        return (ImmutableSortedSet<E>) super.delegateCollection();
      }
    
      @Override
      public Comparator<? super E> comparator() {
        return delegateCollection().comparator();
      }
    
      // Override indexOf() and lastIndexOf() to be O(log N) instead of O(N).
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Aug 07 16:05:33 GMT 2025
    - 3.5K bytes
    - Click Count (0)
  4. guava/src/com/google/common/collect/RegularImmutableAsList.java

        this.delegateList = delegateList;
      }
    
      RegularImmutableAsList(ImmutableCollection<E> delegate, Object[] array) {
        this(delegate, asImmutableList(array));
      }
    
      @Override
      ImmutableCollection<E> delegateCollection() {
        return delegate;
      }
    
      ImmutableList<? extends E> delegateList() {
        return delegateList;
      }
    
      @SuppressWarnings("unchecked") // safe covariant cast!
      @Override
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Sep 23 17:50:58 GMT 2025
    - 2.8K bytes
    - Click Count (0)
  5. guava/src/com/google/common/collect/IndexedImmutableSet.java

          }
    
          @Override
          public int size() {
            return IndexedImmutableSet.this.size();
          }
    
          @Override
          ImmutableCollection<E> delegateCollection() {
            return IndexedImmutableSet.this;
          }
    
          // redeclare to help optimizers with b/310253115
          @SuppressWarnings("RedundantOverride")
          @Override
          @J2ktIncompatible
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Aug 07 16:05:33 GMT 2025
    - 2.6K bytes
    - Click Count (0)
  6. android/guava/src/com/google/common/collect/RegularImmutableAsList.java

      }
    
      RegularImmutableAsList(ImmutableCollection<E> delegate, Object[] array, int size) {
        this(delegate, asImmutableList(array, size));
      }
    
      @Override
      ImmutableCollection<E> delegateCollection() {
        return delegate;
      }
    
      ImmutableList<? extends E> delegateList() {
        return delegateList;
      }
    
      @SuppressWarnings("unchecked") // safe covariant cast!
      @Override
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Sep 23 17:50:58 GMT 2025
    - 2.8K bytes
    - Click Count (0)
  7. guava/src/com/google/common/collect/RegularContiguousSet.java

      }
    
      @Override
      ImmutableList<C> createAsList() {
        if (domain.supportsFastOffset) {
          return new ImmutableAsList<C>() {
            @Override
            ImmutableSortedSet<C> delegateCollection() {
              return RegularContiguousSet.this;
            }
    
            @Override
            public C get(int i) {
              checkElementIndex(i, size());
              return domain.offset(first(), i);
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Aug 07 16:05:33 GMT 2025
    - 8.3K bytes
    - Click Count (0)
  8. guava/src/com/google/common/collect/ImmutableMapValues.java

        return new ImmutableAsList<V>() {
          @Override
          public V get(int index) {
            return entryList.get(index).getValue();
          }
    
          @Override
          ImmutableCollection<V> delegateCollection() {
            return ImmutableMapValues.this;
          }
    
          // redeclare to help optimizers with b/310253115
          @SuppressWarnings("RedundantOverride")
          @Override
          @J2ktIncompatible
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Sun Mar 08 16:16:42 GMT 2026
    - 4.1K bytes
    - Click Count (0)
  9. android/guava/src/com/google/common/collect/RegularContiguousSet.java

      }
    
      @Override
      ImmutableList<C> createAsList() {
        if (domain.supportsFastOffset) {
          return new ImmutableAsList<C>() {
            @Override
            ImmutableSortedSet<C> delegateCollection() {
              return RegularContiguousSet.this;
            }
    
            @Override
            public C get(int i) {
              checkElementIndex(i, size());
              return domain.offset(first(), i);
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Aug 07 16:05:33 GMT 2025
    - 8.3K bytes
    - Click Count (0)
  10. guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/ImmutableSet.java

          return new ImmutableAsList<E>() {
            @Override
            public E get(int index) {
              return Indexed.this.get(index);
            }
    
            @Override
            Indexed<E> delegateCollection() {
              return Indexed.this;
            }
          };
        }
      }
    
      public static <E> Builder<E> builder() {
        return new Builder<E>();
      }
    
    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)
Back to Top