Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 61 - 70 of 577 for iterables (0.05 seconds)

  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;
      }
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Sat Jan 18 02:54:30 GMT 2025
    - 1.8K bytes
    - Click Count (0)
  2. guava-tests/test/com/google/common/util/concurrent/WrappingExecutorServiceTest.java

    import com.google.common.annotations.J2ktIncompatible;
    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 java.util.ArrayList;
    import java.util.Collection;
    import java.util.List;
    import java.util.concurrent.Callable;
    import java.util.concurrent.ExecutionException;
    import java.util.concurrent.ExecutorService;
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Mar 12 17:47:10 GMT 2026
    - 10.1K bytes
    - Click Count (0)
  3. android/guava/src/com/google/common/collect/EvictingQueue.java

      }
    
      @Override
      @CanIgnoreReturnValue
      public boolean addAll(Collection<? extends E> collection) {
        int size = collection.size();
        if (size >= maxSize) {
          clear();
          return Iterables.addAll(this, Iterables.skip(collection, size - maxSize));
        }
        return standardAddAll(collection);
      }
    
      @Override
      @J2ktIncompatible // Incompatible return type change. Use inherited implementation
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Feb 13 17:34:21 GMT 2025
    - 4.6K bytes
    - Click Count (0)
  4. android/guava/src/com/google/common/graph/AbstractDirectedNetworkConnections.java

      }
    
      @Override
      public Set<E> incidentEdges() {
        return new AbstractSet<E>() {
          @Override
          public UnmodifiableIterator<E> iterator() {
            Iterable<E> incidentEdges =
                (selfLoopCount == 0)
                    ? Iterables.concat(inEdgeMap.keySet(), outEdgeMap.keySet())
                    : Sets.union(inEdgeMap.keySet(), outEdgeMap.keySet());
            return Iterators.unmodifiableIterator(incidentEdges.iterator());
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Sun Dec 22 03:38:46 GMT 2024
    - 4.5K bytes
    - Click Count (0)
  5. guava-tests/test/com/google/common/cache/CacheReferencesTest.java

            .withValueStrengths(ImmutableSet.of(STRONG, Strength.WEAK, Strength.SOFT));
      }
    
      private Iterable<LoadingCache<Key, String>> caches() {
        CacheBuilderFactory factory = factoryWithAllKeyStrengths();
        return Iterables.transform(
            factory.buildAllPermutations(), builder -> builder.build(KEY_TO_STRING_LOADER));
      }
    
      public void testContainsKeyAndValue() {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Mar 18 18:06:14 GMT 2026
    - 5.1K bytes
    - Click Count (0)
  6. android/guava-tests/test/com/google/common/util/concurrent/AbstractServiceTest.java

        public synchronized void running() {
          assertEquals(State.STARTING, Iterables.getOnlyElement(stateHistory));
          stateHistory.add(State.RUNNING);
          service.awaitRunning();
          assertThat(service.state()).isNotEqualTo(State.STARTING);
        }
    
        @Override
        public synchronized void stopping(State from) {
          assertEquals(from, Iterables.getLast(stateHistory));
          stateHistory.add(State.STOPPING);
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 16 22:45:21 GMT 2026
    - 28.7K bytes
    - Click Count (0)
  7. guava-tests/test/com/google/common/util/concurrent/AbstractServiceTest.java

        public synchronized void running() {
          assertEquals(State.STARTING, Iterables.getOnlyElement(stateHistory));
          stateHistory.add(State.RUNNING);
          service.awaitRunning();
          assertThat(service.state()).isNotEqualTo(State.STARTING);
        }
    
        @Override
        public synchronized void stopping(State from) {
          assertEquals(from, Iterables.getLast(stateHistory));
          stateHistory.add(State.STOPPING);
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 16 22:45:21 GMT 2026
    - 28.7K bytes
    - Click Count (0)
  8. guava/src/com/google/common/collect/CompoundOrdering.java

        this.comparators = (Comparator<? super T>[]) new Comparator<?>[] {primary, secondary};
      }
    
      @SuppressWarnings("unchecked") // Generic array creation
      CompoundOrdering(Iterable<? extends Comparator<? super T>> comparators) {
        this.comparators =
            Iterables.toArray(comparators, (Comparator<? super T>[]) new Comparator<?>[0]);
      }
    
      @Override
      public int compare(@ParametricNullness T left, @ParametricNullness T right) {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Jun 04 13:03:16 GMT 2025
    - 2.5K bytes
    - Click Count (0)
  9. guava/src/com/google/common/collect/EvictingQueue.java

      }
    
      @Override
      @CanIgnoreReturnValue
      public boolean addAll(Collection<? extends E> collection) {
        int size = collection.size();
        if (size >= maxSize) {
          clear();
          return Iterables.addAll(this, Iterables.skip(collection, size - maxSize));
        }
        return standardAddAll(collection);
      }
    
      @Override
      @J2ktIncompatible // Incompatible return type change. Use inherited implementation
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Feb 13 17:34:21 GMT 2025
    - 4.6K bytes
    - Click Count (0)
  10. android/guava-tests/test/com/google/common/cache/PopulatedCachesTest.java

      /** Most of the tests in this class run against every one of these caches. */
      private Iterable<LoadingCache<Object, Object>> caches() {
        // lots of different ways to configure a LoadingCache
        CacheBuilderFactory factory = cacheFactory();
        return Iterables.transform(
            factory.buildAllPermutations(), builder -> builder.recordStats().build(identityLoader()));
      }
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Mar 18 18:06:14 GMT 2026
    - 15.4K bytes
    - Click Count (0)
Back to Top