Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 61 - 70 of 292 for Collector (0.04 seconds)

  1. guava/src/com/google/common/math/Stats.java

       */
      public static Collector<Number, StatsAccumulator, Stats> toStats() {
        return Collector.of(
            StatsAccumulator::new,
            (a, x) -> a.add(x.doubleValue()),
            (l, r) -> {
              l.addAll(r);
              return l;
            },
            StatsAccumulator::snapshot,
            Collector.Characteristics.UNORDERED);
      }
    
      /** Returns the number of values. */
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Tue Jul 08 18:32:10 GMT 2025
    - 24.8K bytes
    - Click Count (0)
  2. guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/ImmutableList.java

    import java.util.Arrays;
    import java.util.Collection;
    import java.util.Collections;
    import java.util.Comparator;
    import java.util.Iterator;
    import java.util.List;
    import java.util.RandomAccess;
    import java.util.stream.Collector;
    import jsinterop.annotations.JsMethod;
    import org.jspecify.annotations.Nullable;
    
    /**
     * GWT emulated version of {@link com.google.common.collect.ImmutableList}. TODO(cpovirk): more doc
     *
     * @author Hayward Chan
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Wed Aug 06 18:32:41 GMT 2025
    - 11.1K bytes
    - Click Count (0)
  3. api/maven-api-core/src/main/java/org/apache/maven/api/Node.java

    import org.apache.maven.api.annotations.Nonnull;
    import org.apache.maven.api.annotations.Nullable;
    import org.apache.maven.api.annotations.Provider;
    
    /**
     * Represents a dependency node within a Maven project's dependency collector.
     *
     * @since 4.0.0
     * @see org.apache.maven.api.services.DependencyResolverResult#getRoot()
     */
    @Experimental
    @Immutable
    @Provider
    public interface Node {
    
        /**
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Mon Mar 24 14:10:11 GMT 2025
    - 4.2K bytes
    - Click Count (0)
  4. android/guava/src/com/google/common/collect/ImmutableList.java

        implements List<E>, RandomAccess {
    
      /**
       * Returns a {@code Collector} that accumulates the input elements into a new {@code
       * ImmutableList}, in encounter order.
       *
       * @since 33.2.0 (available since 21.0 in guava-jre)
       */
      @IgnoreJRERequirement // Users will use this only if they're already using streams.
      public static <E> Collector<E, ?, ImmutableList<E>> toImmutableList() {
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Tue Sep 23 17:50:58 GMT 2025
    - 27.5K bytes
    - Click Count (0)
  5. guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/ImmutableSortedSet.java

    import java.util.Collection;
    import java.util.Collections;
    import java.util.Comparator;
    import java.util.Iterator;
    import java.util.List;
    import java.util.SortedSet;
    import java.util.TreeSet;
    import java.util.stream.Collector;
    import org.jspecify.annotations.Nullable;
    
    /**
     * GWT emulation of {@link com.google.common.collect.ImmutableSortedSet}.
     *
     * @author Hayward Chan
     */
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Wed Aug 06 18:32:41 GMT 2025
    - 15.5K bytes
    - Click Count (0)
  6. cmd/erasure.go

    			cache.replace(b.Name, dataUsageRoot, *e)
    			bucketCh <- b
    		}
    	}
    	xioutil.SafeClose(bucketCh)
    
    	bucketResults := make(chan dataUsageEntryInfo, len(disks))
    
    	// Start async collector/saver.
    	// This goroutine owns the cache.
    	var saverWg sync.WaitGroup
    	saverWg.Add(1)
    	go func() {
    		// Add jitter to the update time so multiple sets don't sync up.
    Created: Sun Dec 28 19:28:13 GMT 2025
    - Last Modified: Sun Sep 28 20:59:21 GMT 2025
    - 16.1K bytes
    - Click Count (0)
  7. android/guava/src/com/google/common/collect/ImmutableRangeSet.java

    import java.util.ArrayList;
    import java.util.Collections;
    import java.util.Iterator;
    import java.util.List;
    import java.util.NoSuchElementException;
    import java.util.Set;
    import java.util.stream.Collector;
    import org.jspecify.annotations.Nullable;
    
    /**
     * A {@link RangeSet} whose contents will never change, with many other important properties
     * detailed at {@link ImmutableCollection}.
     *
     * @author Louis Wasserman
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Tue Sep 23 17:50:58 GMT 2025
    - 27.5K bytes
    - Click Count (0)
  8. cmd/metrics.go

    }
    
    // newMinioCollector describes the collector
    // and returns reference of minioCollector
    // It creates the Prometheus Description which is used
    // to define metric and  help string
    func newMinioCollector() *minioCollector {
    	return &minioCollector{
    		desc: prometheus.NewDesc("minio_stats", "Statistics exposed by MinIO server", nil, nil),
    	}
    }
    
    // minioCollector is the Custom Collector
    type minioCollector struct {
    Created: Sun Dec 28 19:28:13 GMT 2025
    - Last Modified: Fri Oct 24 04:06:31 GMT 2025
    - 16.7K bytes
    - Click Count (0)
  9. android/guava/src/com/google/common/collect/Multisets.java

    import java.util.NoSuchElementException;
    import java.util.Objects;
    import java.util.Set;
    import java.util.function.Function;
    import java.util.function.Supplier;
    import java.util.function.ToIntFunction;
    import java.util.stream.Collector;
    import org.jspecify.annotations.Nullable;
    
    /**
     * Provides static utility methods for creating and working with {@link Multiset} instances.
     *
     * <p>See the Guava User Guide article on <a href=
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Mon Sep 22 18:35:44 GMT 2025
    - 41.3K bytes
    - Click Count (0)
  10. guava/src/com/google/common/collect/Multisets.java

       * {@code stream.map(function).collect(Collectors.toCollection(supplier))}.
       *
       * <p>To collect to an {@link ImmutableMultiset}, use {@link
       * ImmutableMultiset#toImmutableMultiset}.
       *
       * @since 22.0
       */
      public static <T extends @Nullable Object, E extends @Nullable Object, M extends Multiset<E>>
          Collector<T, ?, M> toMultiset(
              Function<? super T, E> elementFunction,
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Mon Sep 22 18:35:44 GMT 2025
    - 41.2K bytes
    - Click Count (0)
Back to Top