Search Options

Results per page
Sort
Preferred Languages
Advance

Results 421 - 430 of 453 for Iterable (0.05 sec)

  1. guava-tests/benchmark/com/google/common/base/SplitterBenchmark.java

      int charSplitter(int reps) {
        int total = 0;
    
        for (int i = 0; i < reps; i++) {
          total += Iterables.size(CHAR_SPLITTER.split(input));
        }
    
        return total;
      }
    
      @Benchmark
      int stringSplitter(int reps) {
        int total = 0;
    
        for (int i = 0; i < reps; i++) {
          total += Iterables.size(STRING_SPLITTER.split(input));
        }
    
        return total;
      }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jul 02 18:21:29 UTC 2024
    - 1.7K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/util/concurrent/WrappingExecutorServiceTest.java

    import static java.util.concurrent.TimeUnit.SECONDS;
    
    import com.google.common.base.Predicate;
    import com.google.common.base.Predicates;
    import com.google.common.collect.ImmutableList;
    import com.google.common.collect.Iterables;
    import com.google.common.collect.Lists;
    import java.util.Collection;
    import java.util.List;
    import java.util.concurrent.Callable;
    import java.util.concurrent.ExecutionException;
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 22:10:29 UTC 2024
    - 9.9K bytes
    - Viewed (0)
  3. guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/ImmutableEnumSet.java

      static <E> ImmutableSet<E> asImmutable(Set<E> delegate) {
        switch (delegate.size()) {
          case 0:
            return ImmutableSet.of();
          case 1:
            return ImmutableSet.of(Iterables.getOnlyElement(delegate));
          default:
            return new ImmutableEnumSet<E>(delegate);
        }
      }
    
      public ImmutableEnumSet(Set<E> delegate) {
        super(delegate);
      }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jan 23 18:43:40 UTC 2024
    - 1.3K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/io/FilesFileTraverserTest.java

     * limitations under the License.
     */
    
    package com.google.common.io;
    
    import static com.google.common.truth.Truth.assertThat;
    
    import com.google.common.collect.Iterables;
    import com.google.errorprone.annotations.CanIgnoreReturnValue;
    import java.io.File;
    import java.io.IOException;
    
    /**
     * Tests for {@link Files#fileTraverser()}.
     *
     * @author Jens Nyman
     */
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Apr 21 20:17:27 UTC 2023
    - 3.4K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/collect/FilteredMultimapValues.java

      public boolean removeAll(Collection<?> c) {
        return Iterables.removeIf(
            multimap.unfiltered().entries(),
            // explicit <Entry<K, V>> is required to build with JDK6
            Predicates.<Entry<K, V>>and(
                multimap.entryPredicate(), Maps.<V>valuePredicateOnEntries(Predicates.in(c))));
      }
    
      @Override
      public boolean retainAll(Collection<?> c) {
        return Iterables.removeIf(
            multimap.unfiltered().entries(),
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 3K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/io/MoreFilesFileTraverserTest.java

     * limitations under the License.
     */
    
    package com.google.common.io;
    
    import static com.google.common.truth.Truth.assertThat;
    
    import com.google.common.collect.Iterables;
    import com.google.common.jimfs.Configuration;
    import com.google.common.jimfs.Jimfs;
    import com.google.errorprone.annotations.CanIgnoreReturnValue;
    import java.io.IOException;
    import java.nio.file.Files;
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Apr 09 19:30:52 UTC 2018
    - 3.8K bytes
    - Viewed (0)
  7. android/guava-tests/benchmark/com/google/common/util/concurrent/StripedBenchmark.java

     * limitations under the License.
     */
    
    package com.google.common.util.concurrent;
    
    import static com.google.common.collect.Iterables.cycle;
    import static com.google.common.collect.Iterables.limit;
    
    import com.google.caliper.BeforeExperiment;
    import com.google.caliper.Benchmark;
    import com.google.caliper.Param;
    import com.google.caliper.api.Footprint;
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Dec 04 17:37:03 UTC 2017
    - 4K bytes
    - Viewed (0)
  8. guava-tests/benchmark/com/google/common/util/concurrent/StripedBenchmark.java

     * limitations under the License.
     */
    
    package com.google.common.util.concurrent;
    
    import static com.google.common.collect.Iterables.cycle;
    import static com.google.common.collect.Iterables.limit;
    
    import com.google.caliper.BeforeExperiment;
    import com.google.caliper.Benchmark;
    import com.google.caliper.Param;
    import com.google.caliper.api.Footprint;
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Dec 04 17:37:03 UTC 2017
    - 4K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/base/ThrowablesTest.java

    import com.google.common.base.TestExceptions.SomeUncheckedException;
    import com.google.common.base.TestExceptions.YetAnotherCheckedException;
    import com.google.common.collect.Iterables;
    import com.google.common.primitives.Ints;
    import com.google.common.testing.NullPointerTester;
    import java.util.List;
    import junit.framework.TestCase;
    
    /**
     * Unit test for {@link Throwables}.
     *
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Sep 17 18:14:12 UTC 2024
    - 14.6K bytes
    - Viewed (0)
  10. guava-testlib/src/com/google/common/testing/EqualsTester.java

    import static junit.framework.Assert.assertEquals;
    import static junit.framework.Assert.assertTrue;
    
    import com.google.common.annotations.GwtCompatible;
    import com.google.common.base.Equivalence;
    import com.google.common.collect.Iterables;
    import com.google.common.collect.Lists;
    import com.google.errorprone.annotations.CanIgnoreReturnValue;
    import java.util.ArrayList;
    import java.util.List;
    import org.checkerframework.checker.nullness.qual.Nullable;
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Oct 31 19:11:50 UTC 2023
    - 6K bytes
    - Viewed (0)
Back to top