Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 38 for Action (0.17 sec)

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

            return super.writeReplace();
          }
        };
      }
    
      @GwtIncompatible // serialization
      @Override
      public void forEach(Consumer<? super V> action) {
        checkNotNull(action);
        map.forEach((k, v) -> action.accept(v));
      }
    
      // redeclare to help optimizers with b/310253115
      @SuppressWarnings("RedundantOverride")
      @Override
      @J2ktIncompatible // serialization
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Thu Nov 30 21:54:06 GMT 2023
    - 3.6K bytes
    - Viewed (0)
  2. guava/src/com/google/common/collect/JdkBackedImmutableMap.java

        return new ImmutableMapEntrySet.RegularEntrySet<>(this, entries);
      }
    
      @Override
      public void forEach(BiConsumer<? super K, ? super V> action) {
        checkNotNull(action);
        entries.forEach(e -> action.accept(e.getKey(), e.getValue()));
      }
    
      @Override
      ImmutableSet<K> createKeySet() {
        return new ImmutableMapKeySet<>(this);
      }
    
      @Override
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Thu Nov 30 21:54:06 GMT 2023
    - 4.8K bytes
    - Viewed (0)
  3. guava/src/com/google/common/collect/ImmutableEnumSet.java

      }
    
      @Override
      public Spliterator<E> spliterator() {
        return delegate.spliterator();
      }
    
      @Override
      public void forEach(Consumer<? super E> action) {
        delegate.forEach(action);
      }
    
      @Override
      public int size() {
        return delegate.size();
      }
    
      @Override
      public boolean contains(@CheckForNull Object object) {
        return delegate.contains(object);
      }
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 4.5K bytes
    - Viewed (0)
  4. android/guava-testlib/test/com/google/common/collect/testing/OpenJdk6MapTests.java

         * didn't see that discussed in the review, which included many other
         * changes: http://goo.gl/okTTdr
         *
         * TODO(cpovirk): decide what the best long-term action here is: force users
         * to suppress (as we do now), stop testing entrySet().add() at all, make
         * entrySet().add() tests tolerant of either behavior, introduce a map
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 3.8K bytes
    - Viewed (0)
  5. guava-testlib/test/com/google/common/collect/testing/OpenJdk6MapTests.java

         * didn't see that discussed in the review, which included many other
         * changes: http://goo.gl/okTTdr
         *
         * TODO(cpovirk): decide what the best long-term action here is: force users
         * to suppress (as we do now), stop testing entrySet().add() at all, make
         * entrySet().add() tests tolerant of either behavior, introduce a map
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 4K bytes
    - Viewed (0)
  6. guava/src/com/google/common/collect/ImmutableMapKeySet.java

      }
    
      @Override
      K get(int index) {
        return map.entrySet().asList().get(index).getKey();
      }
    
      @Override
      public void forEach(Consumer<? super K> action) {
        checkNotNull(action);
        map.forEach((k, v) -> action.accept(k));
      }
    
      @Override
      boolean isPartialView() {
        return true;
      }
    
      // redeclare to help optimizers with b/310253115
      @SuppressWarnings("RedundantOverride")
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Thu Nov 30 21:54:06 GMT 2023
    - 2.7K bytes
    - Viewed (0)
  7. guava/src/com/google/common/collect/ImmutableMapEntrySet.java

        }
    
        @Override
        public Spliterator<Entry<K, V>> spliterator() {
          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
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Thu Nov 30 21:54:06 GMT 2023
    - 4.1K bytes
    - Viewed (0)
  8. guava/src/com/google/common/collect/EnumMultiset.java

              }
            };
          }
        };
      }
    
      @Override
      public void forEachEntry(ObjIntConsumer<? super E> action) {
        checkNotNull(action);
        for (int i = 0; i < enumConstants.length; i++) {
          if (counts[i] > 0) {
            action.accept(enumConstants[i], counts[i]);
          }
        }
      }
    
      @Override
      public Iterator<E> iterator() {
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 9.3K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/io/ByteSinkTest.java

        sink.writeFrom(in);
        assertFalse(in.closed());
      }
    
      public void testClosesOnErrors_copyingFromByteSourceThatThrows() {
        for (TestOption option : EnumSet.of(OPEN_THROWS, READ_THROWS, CLOSE_THROWS)) {
          TestByteSource failSource = new TestByteSource(new byte[10], option);
          TestByteSink okSink = new TestByteSink();
          assertThrows(IOException.class, () -> failSource.copyTo(okSink));
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 3.7K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/hash/Crc32cHashFunctionTest.java

    import static com.google.common.base.Charsets.UTF_8;
    
    import java.util.Arrays;
    import java.util.Random;
    import junit.framework.TestCase;
    
    /**
     * Unit tests for {@link Crc32c}. Known test values are from RFC 3720, Section B.4.
     *
     * @author Patrick Costello
     * @author Kurt Alfred Kluever
     */
    public class Crc32cHashFunctionTest extends TestCase {
      public void testEmpty() {
        assertCrc(0, new byte[0]);
      }
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Dec 23 18:30:33 GMT 2020
    - 6.5K bytes
    - Viewed (0)
Back to top