Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 78 for ImmutableCollection (0.24 sec)

  1. guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/ImmutableCollection.java

    import org.checkerframework.checker.nullness.qual.Nullable;
    
    /**
     * GWT emulated version of {@link ImmutableCollection}.
     *
     * @author Jesse Wilson
     */
    @SuppressWarnings("serial") // we're overriding default serialization
    @ElementTypesAreNonnullByDefault
    public abstract class ImmutableCollection<E> extends AbstractCollection<E> implements Serializable {
      static final int SPLITERATOR_CHARACTERISTICS =
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Jan 23 18:43:40 GMT 2024
    - 5K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/collect/ImmutableCollection.java

            Collection<?> collection = (Collection<?>) elements;
            getReadyToExpandTo(size + collection.size());
            if (collection instanceof ImmutableCollection) {
              ImmutableCollection<?> immutableCollection = (ImmutableCollection<?>) collection;
              size = immutableCollection.copyIntoArray(contents, size);
              return this;
            }
          }
          super.addAll(elements);
          return this;
        }
      }
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 21.5K bytes
    - Viewed (0)
  3. 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();
      }
    
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 18.7K bytes
    - Viewed (1)
  4. 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;
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 22 21:19:52 GMT 2024
    - 24.7K bytes
    - Viewed (0)
  5. 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;
    
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Thu Feb 22 21:19:52 GMT 2024
    - 25.6K bytes
    - Viewed (0)
  6. 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) {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Feb 01 21:46:34 GMT 2024
    - 15.4K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/collect/ImmutableCollectionTest.java

    import junit.framework.TestCase;
    
    /**
     * Tests for {@code ImmutableCollection}.
     *
     * @author Louis Wasserman
     */
    public class ImmutableCollectionTest extends TestCase {
      public void testCapacityExpansion() {
        assertEquals(1, ImmutableCollection.Builder.expandedCapacity(0, 1));
        assertEquals(2, ImmutableCollection.Builder.expandedCapacity(0, 2));
        assertEquals(2, ImmutableCollection.Builder.expandedCapacity(1, 2));
        assertEquals(
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 1.5K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/collect/ImmutableCollectionTest.java

    import junit.framework.TestCase;
    
    /**
     * Tests for {@code ImmutableCollection}.
     *
     * @author Louis Wasserman
     */
    public class ImmutableCollectionTest extends TestCase {
      public void testCapacityExpansion() {
        assertEquals(1, ImmutableCollection.Builder.expandedCapacity(0, 1));
        assertEquals(2, ImmutableCollection.Builder.expandedCapacity(0, 2));
        assertEquals(2, ImmutableCollection.Builder.expandedCapacity(1, 2));
        assertEquals(
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 1.5K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/collect/RegularImmutableAsList.java

    class RegularImmutableAsList<E> extends ImmutableAsList<E> {
      private final ImmutableCollection<E> delegate;
      private final ImmutableList<? extends E> delegateList;
    
      RegularImmutableAsList(ImmutableCollection<E> delegate, ImmutableList<? extends E> delegateList) {
        this.delegate = delegate;
        this.delegateList = delegateList;
      }
    
      RegularImmutableAsList(ImmutableCollection<E> delegate, Object[] array) {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Nov 30 21:54:06 GMT 2023
    - 3K bytes
    - Viewed (0)
  10. 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");
      }
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 17.6K bytes
    - Viewed (0)
Back to top