Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 10 for createAsList (0.17 sec)

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

        }
      }
    
      @Override
      @GwtIncompatible
      int copyIntoArray(@Nullable Object[] dst, int offset) {
        return asList().copyIntoArray(dst, offset);
      }
    
      @Override
      ImmutableList<E> createAsList() {
        return new ImmutableAsList<E>() {
          @Override
          public E get(int index) {
            return IndexedImmutableSet.this.get(index);
          }
    
          @Override
          boolean isPartialView() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Nov 30 21:54:06 UTC 2023
    - 2.7K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/collect/RegularContiguousSet.java

        // requireNonNull is safe because we checked the range is not empty in ContiguousSet.create.
        return requireNonNull(range.upperBound.greatestValueBelow(domain));
      }
    
      @Override
      ImmutableList<C> createAsList() {
        if (domain.supportsFastOffset) {
          return new ImmutableAsList<C>() {
            @Override
            ImmutableSortedSet<C> delegateCollection() {
              return RegularContiguousSet.this;
            }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Feb 22 21:19:52 UTC 2024
    - 8.4K bytes
    - Viewed (0)
  3. guava/src/com/google/common/collect/ImmutableMapEntrySet.java

          return entries.spliterator();
        }
    
        @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
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Nov 30 21:54:06 UTC 2023
    - 4.1K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/collect/ImmutableMapEntrySet.java

        }
    
        @Override
        public UnmodifiableIterator<Entry<K, V>> iterator() {
          return entries.iterator();
        }
    
        @Override
        ImmutableList<Entry<K, V>> createAsList() {
          return 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
    - 3.8K bytes
    - Viewed (0)
  5. guava/src/com/google/common/collect/RegularImmutableSet.java

      @Override
      int copyIntoArray(@Nullable Object[] dst, int offset) {
        arraycopy(elements, 0, dst, offset, elements.length);
        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;
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 3.9K bytes
    - Viewed (0)
  6. guava/src/com/google/common/collect/RegularImmutableSortedSet.java

        } catch (ClassCastException e) {
          return -1;
        }
        return (position >= 0) ? position : -1;
      }
    
      @Override
      ImmutableList<E> createAsList() {
        return (size() <= 1) ? elements : new ImmutableSortedAsList<E>(this, elements);
      }
    
      @Override
      ImmutableSortedSet<E> createDescendingSet() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Apr 01 16:15:01 UTC 2024
    - 9.2K bytes
    - Viewed (0)
  7. guava/src/com/google/common/collect/RegularImmutableBiMap.java

          }
    
          @Override
          public void forEach(Consumer<? super Entry<V, K>> action) {
            asList().forEach(action);
          }
    
          @Override
          ImmutableList<Entry<V, K>> createAsList() {
            return new ImmutableAsList<Entry<V, K>>() {
              @Override
              public Entry<V, K> get(int index) {
                Entry<K, V> entry = entries[index];
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:05:46 UTC 2024
    - 11.3K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/collect/RegularImmutableMap.java

        }
    
        @Override
        int copyIntoArray(@Nullable Object[] dst, int offset) {
          return asList().copyIntoArray(dst, offset);
        }
    
        @Override
        ImmutableList<Entry<K, V>> createAsList() {
          return new ImmutableList<Entry<K, V>>() {
            @Override
            public Entry<K, V> get(int index) {
              checkElementIndex(index, size);
              /*
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Apr 15 22:32:14 UTC 2024
    - 22.7K bytes
    - Viewed (0)
  9. guava/src/com/google/common/collect/ImmutableSortedMap.java

          }
    
          @Override
          public void forEach(Consumer<? super Entry<K, V>> action) {
            asList().forEach(action);
          }
    
          @Override
          ImmutableList<Entry<K, V>> createAsList() {
            return new ImmutableAsList<Entry<K, V>>() {
              @Override
              public Entry<K, V> get(int index) {
                return new AbstractMap.SimpleImmutableEntry<>(
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 50.4K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/collect/ImmutableSortedMap.java

          @Override
          public UnmodifiableIterator<Entry<K, V>> iterator() {
            return asList().iterator();
          }
    
          @Override
          ImmutableList<Entry<K, V>> createAsList() {
            return new ImmutableList<Entry<K, V>>() {
              @Override
              public Entry<K, V> get(int index) {
                return new AbstractMap.SimpleImmutableEntry<>(
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 53K bytes
    - Viewed (0)
Back to top