Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for ImmutableAsList (0.08 sec)

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

    import org.jspecify.annotations.Nullable;
    
    /**
     * An {@link ImmutableAsList} implementation specialized for when the delegate collection is already
     * backed by an {@code ImmutableList} or array.
     *
     * @author Louis Wasserman
     */
    @GwtCompatible
    @SuppressWarnings("serial") // uses writeReplace, not default serialization
    class RegularImmutableAsList<E> extends ImmutableAsList<E> {
      private final ImmutableCollection<E> delegate;
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 2.8K bytes
    - Viewed (0)
  2. guava/src/com/google/common/collect/ImmutableMapValues.java

      }
    
      @Override
      boolean isPartialView() {
        return true;
      }
    
      @Override
      public ImmutableList<V> asList() {
        ImmutableList<Entry<K, V>> entryList = map.entrySet().asList();
        return new ImmutableAsList<V>() {
          @Override
          public V get(int index) {
            return entryList.get(index).getValue();
          }
    
          @Override
          ImmutableCollection<V> delegateCollection() {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 3.9K bytes
    - Viewed (0)
  3. guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/ImmutableSet.java

        @Override
        public UnmodifiableIterator<E> iterator() {
          return asList().iterator();
        }
    
        @Override
        ImmutableList<E> createAsList() {
          return new ImmutableAsList<E>() {
            @Override
            public E get(int index) {
              return Indexed.this.get(index);
            }
    
            @Override
            Indexed<E> delegateCollection() {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Aug 06 18:32:41 UTC 2025
    - 8.3K bytes
    - Viewed (0)
  4. guava/src/com/google/common/collect/ImmutableSet.java

      // We keep it to minimize diffs.
      @SuppressWarnings("unchecked")
      public static <E> ImmutableSet<E> copyOf(Collection<? extends E> elements) {
        /*
         * TODO(lowasser): consider checking for ImmutableAsList here
         * TODO(lowasser): consider checking for Multiset here
         */
        // Don't refer to ImmutableSortedSet by name so it won't pull in all that code
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 35.2K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/collect/RegularContiguousSet.java

        return requireNonNull(range.upperBound.greatestValueBelow(domain));
      }
    
      @Override
      ImmutableList<C> createAsList() {
        if (domain.supportsFastOffset) {
          return new ImmutableAsList<C>() {
            @Override
            ImmutableSortedSet<C> delegateCollection() {
              return RegularContiguousSet.this;
            }
    
            @Override
            public C get(int i) {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 8.3K bytes
    - Viewed (0)
  6. guava/src/com/google/common/collect/RegularImmutableBiMap.java

          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];
                return immutableEntry(entry.getValue(), entry.getKey());
              }
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 11.1K bytes
    - Viewed (0)
Back to top