Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for delegateCollection (0.14 sec)

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

      abstract ImmutableCollection<E> delegateCollection();
    
      @Override
      public boolean contains(@CheckForNull 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
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Mar 06 16:06:58 UTC 2023
    - 2.6K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/collect/ImmutableAsList.java

      abstract ImmutableCollection<E> delegateCollection();
    
      @Override
      public boolean contains(@CheckForNull 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
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Mar 06 16:06:58 UTC 2023
    - 2.6K bytes
    - Viewed (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).
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Nov 30 21:54:06 UTC 2023
    - 3.6K bytes
    - Viewed (0)
  4. guava/src/com/google/common/collect/RegularImmutableAsList.java

      }
    
      RegularImmutableAsList(ImmutableCollection<E> delegate, Object[] array) {
        this(delegate, ImmutableList.<E>asImmutableList(array));
      }
    
      @Override
      ImmutableCollection<E> delegateCollection() {
        return delegate;
      }
    
      ImmutableList<? extends E> delegateList() {
        return delegateList;
      }
    
      @SuppressWarnings("unchecked") // safe covariant cast!
      @Override
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Nov 30 21:54:06 UTC 2023
    - 3K bytes
    - Viewed (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 // serialization
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Nov 30 21:54:06 UTC 2023
    - 2.7K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/collect/RegularImmutableAsList.java

      }
    
      RegularImmutableAsList(ImmutableCollection<E> delegate, Object[] array, int size) {
        this(delegate, ImmutableList.<E>asImmutableList(array, size));
      }
    
      @Override
      ImmutableCollection<E> delegateCollection() {
        return delegate;
      }
    
      ImmutableList<? extends E> delegateList() {
        return delegateList;
      }
    
      @SuppressWarnings("unchecked") // safe covariant cast!
      @Override
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Nov 30 21:54:06 UTC 2023
    - 3K bytes
    - Viewed (0)
  7. 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 // serialization
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Nov 30 21:54:06 UTC 2023
    - 3.6K bytes
    - Viewed (0)
  8. 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);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Feb 22 21:19:52 UTC 2024
    - 8.4K bytes
    - Viewed (0)
Back to top