- Sort Score
- Num 10 results
- Language All
Results 1 - 5 of 5 for mapToLong (0.05 seconds)
-
compat/maven-model/src/test/java/org/apache/maven/model/pom/PomMemoryAnalyzer.java
Created: Sun Dec 28 03:35:09 GMT 2025 - Last Modified: Fri Mar 21 04:56:21 GMT 2025 - 13.4K bytes - Click Count (0) -
impl/maven-core/src/main/java/org/apache/maven/lifecycle/internal/builder/multithreaded/SmartProjectComparator.java
// Calculate maximum weight of downstream dependencies long maxDownstreamWeight = dependencyGraph.getDownstreamProjects(project, false).stream() .mapToLong(this::getProjectWeight) .max() .orElse(0L); // Weight = 1 + max downstream weight (similar to Takari Smart Builder) return 1L + maxDownstreamWeight; }Created: Sun Dec 28 03:35:09 GMT 2025 - Last Modified: Wed Aug 06 12:03:40 GMT 2025 - 4.6K bytes - Click Count (0) -
guava-tests/test/com/google/common/math/StatsAccumulatorTest.java
} public void testAddAllPrimitiveLongStream() { StatsAccumulator accumulator = new StatsAccumulator(); accumulator.addAll(megaPrimitiveDoubleStreamPart1().mapToLong(x -> (long) x)); accumulator.addAll(megaPrimitiveDoubleStreamPart2().mapToLong(x -> (long) x)); assertThat(accumulator.count()).isEqualTo(MEGA_STREAM_COUNT); assertThat(accumulator.mean()).isWithin(ALLOWED_ERROR * MEGA_STREAM_COUNT).of(MEGA_STREAM_MEAN);
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Thu Dec 11 20:45:32 GMT 2025 - 36.9K bytes - Click Count (0) -
guava/src/com/google/common/util/concurrent/AtomicLongMap.java
/** * Returns the sum of all values in this map. * * <p>This method is not atomic: the sum may or may not include other concurrent operations. */ public long sum() { return map.values().stream().mapToLong(Long::longValue).sum(); } @LazyInit private transient @Nullable Map<K, Long> asMap; /** Returns a live, read-only view of the map backing this {@code AtomicLongMap}. */ public Map<K, Long> asMap() {
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Fri Oct 10 23:13:45 GMT 2025 - 11.7K bytes - Click Count (0) -
android/guava/src/com/google/common/primitives/ImmutableLongArray.java
* <li>Can be queried without allocating garbage. * <li>Access to {@code LongStream} features (like {@link LongStream#sum}) using {@code stream()} * instead of the awkward {@code stream().mapToLong(v -> v)}. * </ul> * * <p>Disadvantages compared to {@code ImmutableList<Long>}: * * <ul> * <li>Can't be passed directly to methods that expect {@code Iterable}, {@code Collection}, or
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Fri Dec 12 14:49:24 GMT 2025 - 22K bytes - Click Count (0)