- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 17 for accumulator (1.21 sec)
-
guava-tests/test/com/google/common/collect/SetsTest.java
adder.accept(accumulator, SomeEnum.A); adder.accept(accumulator, SomeEnum.B); ImmutableSet<SomeEnum> set = collector.finisher().apply(accumulator); assertThat(set).containsExactly(SomeEnum.A, SomeEnum.B); // Subsequent manual manipulation of the accumulator must not affect the state of the built set adder.accept(accumulator, SomeEnum.C); assertThat(set).containsExactly(SomeEnum.A, SomeEnum.B); }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 48.6K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/TopKSelector.java
import java.util.Arrays; import java.util.Comparator; import java.util.Iterator; import java.util.List; import javax.annotation.CheckForNull; import org.checkerframework.checker.nullness.qual.Nullable; /** * An accumulator that selects the "top" {@code k} elements added to it, relative to a provided * comparator. "Top" can mean the greatest or the lowest elements, specified in the factory used to * create the {@code TopKSelector} instance. *
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 11.1K bytes - Viewed (0) -
cmd/xl-storage-disk-id-check.go
a.N = atomic.LoadInt64(&old.N) e.mu.Lock() e.lastMinuteLatency.addAll(t-1, a) e.mu.Unlock() acc = newAcc } else { // We may be able to grab the new accumulator by yielding. runtime.Gosched() acc = e.cached.Load() } } atomic.AddInt64(&acc.N, 1) atomic.AddInt64(&acc.Total, int64(value)) atomic.AddInt64(&acc.Size, sz) }
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Sat Oct 26 09:56:26 UTC 2024 - 34.5K bytes - Viewed (0) -
impl/maven-core/src/main/java/org/apache/maven/artifact/resolver/filter/CumulativeScopeArtifactFilter.java
import java.util.Collection; import java.util.HashSet; import java.util.Set; /** * Filter to only retain objects in the given scope or better. This implementation allows the accumulation of multiple * scopes and their associated implied scopes, so that the user can filter apply a series of implication rules in a
Registered: Sun Nov 03 03:35:11 UTC 2024 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 3K bytes - Viewed (0) -
cmd/admin-heal-ops.go
apiErr := toAdminAPIErr(ctx, err) return fmt.Errorf("Heal internal error: %s: %s", apiErr.Code, apiErr.Description) } ) // healSequenceStatus - accumulated status of the heal sequence type healSequenceStatus struct { // summary and detail for failures Summary healStatusSummary `json:"Summary"` FailureDetail string `json:"Detail,omitempty"`
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Sat Oct 26 09:58:27 UTC 2024 - 25.6K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/ImmutableTable.java
*/ @GwtCompatible @ElementTypesAreNonnullByDefault public abstract class ImmutableTable<R, C, V> extends AbstractTable<R, C, V> implements Serializable { /** * Returns a {@code Collector} that accumulates elements into an {@code ImmutableTable}. Each * input element is mapped to one cell in the returned table, with the rows, columns, and values * generated by applying the specified functions. *
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 17.5K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/ImmutableRangeMap.java
private static final ImmutableRangeMap<Comparable<?>, Object> EMPTY = new ImmutableRangeMap<>(ImmutableList.<Range<Comparable<?>>>of(), ImmutableList.of()); /** * Returns a {@code Collector} that accumulates the input elements into a new {@code * ImmutableRangeMap}. As in {@link Builder}, overlapping ranges are not permitted. * * @since 33.2.0 (available since 23.1 in guava-jre) */
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 14.4K bytes - Viewed (0) -
guava/src/com/google/common/collect/ImmutableRangeSet.java
private static final ImmutableRangeSet<Comparable<?>> ALL = new ImmutableRangeSet<>(ImmutableList.of(Range.<Comparable<?>>all())); /** * Returns a {@code Collector} that accumulates the input elements into a new {@code * ImmutableRangeSet}. As in {@link Builder}, overlapping ranges are not permitted and adjacent * ranges will be merged. * * @since 23.1 */
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 27K bytes - Viewed (0) -
guava/src/com/google/common/collect/ImmutableSortedMap.java
@GwtCompatible(serializable = true, emulated = true) @ElementTypesAreNonnullByDefault public final class ImmutableSortedMap<K, V> extends ImmutableMap<K, V> implements NavigableMap<K, V> { /** * Returns a {@link Collector} that accumulates elements into an {@code ImmutableSortedMap} whose * keys and values are the result of applying the provided mapping functions to the input * elements. The generated map is sorted by the specified comparator. *
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 50.4K bytes - Viewed (0) -
guava/src/com/google/common/collect/ImmutableMap.java
@SuppressWarnings("serial") // we're overriding default serialization @ElementTypesAreNonnullByDefault public abstract class ImmutableMap<K, V> implements Map<K, V>, Serializable { /** * Returns a {@link Collector} that accumulates elements into an {@code ImmutableMap} whose keys * and values are the result of applying the provided mapping functions to the input elements. * Entries appear in the result {@code ImmutableMap} in encounter order. *
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 44.6K bytes - Viewed (0)