Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 40 for ImmutableCollection (0.13 sec)

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

        }
    
        /**
         * Returns a newly-created {@code ImmutableCollection} of the appropriate type, containing the
         * elements provided to this builder.
         *
         * <p>Note that each builder class covariantly returns the appropriate type of {@code
         * ImmutableCollection} from this method.
         */
        public abstract ImmutableCollection<E> build();
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Aug 12 16:59:15 UTC 2024
    - 18.8K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/collect/ImmutableMultimap.java

      @Override
      public ImmutableCollection<Entry<K, V>> entries() {
        return (ImmutableCollection<Entry<K, V>>) super.entries();
      }
    
      @Override
      ImmutableCollection<Entry<K, V>> createEntries() {
        return new EntryCollection<>(this);
      }
    
      private static class EntryCollection<K, V> extends ImmutableCollection<Entry<K, V>> {
        @Weak final ImmutableMultimap<K, V> multimap;
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 27.9K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/util/concurrent/AggregateFuture.java

       */
      @CheckForNull @LazyInit
      private ImmutableCollection<? extends ListenableFuture<? extends InputT>> futures;
    
      private final boolean allMustSucceed;
      private final boolean collectsValues;
    
      AggregateFuture(
          ImmutableCollection<? extends ListenableFuture<? extends InputT>> futures,
          boolean allMustSucceed,
          boolean collectsValues) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 25 13:13:32 UTC 2024
    - 16.2K bytes
    - Viewed (0)
  4. android/guava-testlib/test/com/google/common/testing/FreshValueGeneratorTest.java

        assertNotInstantiable(new TypeToken<ImmutableMultiset<EmptyEnum>>() {});
      }
    
      public void testImmutableCollection() {
        assertFreshInstance(new TypeToken<ImmutableCollection<String>>() {});
        assertNotInstantiable(new TypeToken<ImmutableCollection<EmptyEnum>>() {});
      }
    
      public void testImmutableMap() {
        assertFreshInstance(new TypeToken<ImmutableMap<String, Integer>>() {});
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Dec 04 17:37:03 UTC 2017
    - 17.2K bytes
    - Viewed (0)
  5. guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/ImmutableList.java

        if (elements instanceof ImmutableCollection) {
          /*
           * TODO: When given an ImmutableList that's a sublist, copy the referenced
           * portion of the array into a new array to save space?
           */
          @SuppressWarnings("unchecked") // all supported methods are covariant
          ImmutableCollection<E> list = (ImmutableCollection<E>) elements;
          return list.asList();
        }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Jun 14 22:14:46 UTC 2024
    - 11.1K bytes
    - Viewed (0)
  6. guava/src/com/google/common/collect/ImmutableList.java

            Collection<?> collection = (Collection<?>) elements;
            ensureRoomFor(collection.size());
            if (collection instanceof ImmutableCollection) {
              ImmutableCollection<?> immutableCollection = (ImmutableCollection<?>) collection;
              size = immutableCollection.copyIntoArray(contents, size);
              return this;
            }
          }
          super.addAll(elements);
          return this;
        }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Aug 16 19:14:45 UTC 2024
    - 30.5K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/collect/ImmutableMap.java

          }
        };
      }
    
      @LazyInit @RetainedWith @CheckForNull private transient ImmutableCollection<V> values;
    
      /**
       * Returns an immutable collection of the values in this map, in the same order that they appear
       * in {@link #entrySet}.
       */
      @Override
      public ImmutableCollection<V> values() {
        ImmutableCollection<V> result = values;
        return (result == null) ? values = createValues() : result;
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 41.5K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/collect/ImmutableTable.java

      final UnmodifiableIterator<Cell<R, C, V>> cellIterator() {
        throw new AssertionError("should never be called");
      }
    
      @Override
      public ImmutableCollection<V> values() {
        return (ImmutableCollection<V>) super.values();
      }
    
      @Override
      abstract ImmutableCollection<V> createValues();
    
      @Override
      final Iterator<V> valuesIterator() {
        throw new AssertionError("should never be called");
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 17.5K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/collect/ImmutableList.java

       */
      public static <E> ImmutableList<E> copyOf(Collection<? extends E> elements) {
        if (elements instanceof ImmutableCollection) {
          @SuppressWarnings("unchecked") // all supported methods are covariant
          ImmutableList<E> list = ((ImmutableCollection<E>) elements).asList();
          return list.isPartialView() ? ImmutableList.<E>asImmutableList(list.toArray()) : list;
        }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 16 21:21:17 UTC 2024
    - 27.7K bytes
    - Viewed (0)
  10. guava/src/com/google/common/collect/ImmutableMap.java

      }
    
      @LazyInit @RetainedWith @CheckForNull private transient ImmutableCollection<V> values;
    
      /**
       * Returns an immutable collection of the values in this map, in the same order that they appear
       * in {@link #entrySet}.
       */
      @Override
      public ImmutableCollection<V> values() {
        ImmutableCollection<V> result = values;
        return (result == null) ? values = createValues() : result;
      }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 44.6K bytes
    - Viewed (0)
Back to top