Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 61 for reduce (0.07 sec)

  1. compat/maven-embedder/src/main/java/org/apache/maven/cli/CLIReportingUtils.java

        public static String createMavenVersionString(Properties buildProperties) {
            String timestamp = reduce(buildProperties.getProperty("timestamp"));
            String version = reduce(buildProperties.getProperty(BUILD_VERSION_PROPERTY));
            String rev = reduce(buildProperties.getProperty("buildNumber"));
            String distributionName = reduce(buildProperties.getProperty("distributionName"));
    
            String msg = distributionName + " ";
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 7.3K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/collect/Streams.java

        R apply(double from, long index);
      }
    
      /**
       * Returns the last element of the specified stream, or {@link java.util.Optional#empty} if the
       * stream is empty.
       *
       * <p>Equivalent to {@code stream.reduce((a, b) -> b)}, but may perform significantly better. This
       * method's runtime will be between O(log n) and O(n), performing better on <a
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 31 14:20:11 UTC 2024
    - 37.4K bytes
    - Viewed (0)
  3. guava/src/com/google/common/collect/CompactHashing.java

      }
    
      /**
       * Returns a larger power of 2 hashtable size given the current mask.
       *
       * <p>For hashtable sizes less than or equal to 32, the returned power of 2 is 4x the current
       * hashtable size to reduce expensive rehashing. Otherwise the returned power of 2 is 2x the
       * current hashtable size.
       */
      static int newCapacity(int mask) {
        return ((mask < 32) ? 4 : 2) * (mask + 1);
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 25 15:34:52 UTC 2024
    - 7.1K bytes
    - Viewed (0)
  4. compat/maven-model-builder/src/main/java/org/apache/maven/model/building/DefaultTransformerContextBuilder.java

            if (sources == null) {
                return null;
            }
            return sources.stream()
                    .reduce((a, b) -> {
                        throw new IllegalStateException(String.format(
                                "No unique Source for %s:%s: %s and %s",
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 9.1K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/collect/CompactHashing.java

      }
    
      /**
       * Returns a larger power of 2 hashtable size given the current mask.
       *
       * <p>For hashtable sizes less than or equal to 32, the returned power of 2 is 4x the current
       * hashtable size to reduce expensive rehashing. Otherwise the returned power of 2 is 2x the
       * current hashtable size.
       */
      static int newCapacity(int mask) {
        return ((mask < 32) ? 4 : 2) * (mask + 1);
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 25 15:34:52 UTC 2024
    - 7.1K bytes
    - Viewed (0)
  6. guava/src/com/google/common/collect/Streams.java

        R apply(double from, long index);
      }
    
      /**
       * Returns the last element of the specified stream, or {@link java.util.Optional#empty} if the
       * stream is empty.
       *
       * <p>Equivalent to {@code stream.reduce((a, b) -> b)}, but may perform significantly better. This
       * method's runtime will be between O(log n) and O(n), performing better on <a
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 31 14:20:11 UTC 2024
    - 36.8K bytes
    - Viewed (0)
  7. cmd/erasure-healing-common.go

    	onlineDisks = make([]StorageAPI, len(disks))
    
    	// List all the file commit ids from parts metadata.
    	modTimes := listObjectModtimes(partsMetadata, errs)
    
    	// Reduce list of UUIDs to a single common value.
    	modTime = commonTime(modTimes, quorum)
    
    	if modTime.IsZero() || modTime.Equal(timeSentinel) {
    		etags := listObjectETags(partsMetadata, errs, quorum)
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Oct 31 22:10:24 UTC 2024
    - 12.7K bytes
    - Viewed (0)
  8. guava/src/com/google/common/base/Stopwatch.java

     * </ul>
     *
     * <p>The one downside of {@code Stopwatch} relative to {@link System#nanoTime()} is that {@code
     * Stopwatch} requires object allocation and additional method calls, which can reduce the accuracy
     * of the elapsed times reported. {@code Stopwatch} is still suitable for logging and metrics where
     * reasonably accurate values are sufficient. If the uncommon case that you need to maximize
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 31 14:20:11 UTC 2024
    - 9.3K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/collect/Ordering.java

       * HashSet}, will produce non-deterministic results.
       *
       * <p><b>Java 8+ users:</b> Use a chain of calls to {@link Comparator#thenComparing(Comparator)},
       * or {@code comparatorCollection.stream().reduce(Comparator::thenComparing).get()} (if the
       * collection might be empty, also provide a default comparator as the {@code identity} parameter
       * to {@code reduce}).
       *
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 39.4K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/collect/ImmutableBiMapTest.java

    /**
     * Tests for {@link ImmutableBiMap}.
     *
     * @author Jared Levy
     */
    @GwtCompatible(emulated = true)
    @ElementTypesAreNonnullByDefault
    public class ImmutableBiMapTest extends TestCase {
    
      // TODO: Reduce duplication of ImmutableMapTest code
    
      @J2ktIncompatible
      @GwtIncompatible // suite
      public static Test suite() {
        TestSuite suite = new TestSuite();
    
        suite.addTest(
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 22.3K bytes
    - Viewed (0)
Back to top