- Sort Score
- Result 10 results
- Languages All
Results 2221 - 2230 of 3,179 for code3 (0.04 sec)
-
guava-tests/test/com/google/common/cache/TestingWeighers.java
/** * Utility {@link Weigher} implementations intended for use in testing. * * @author Charles Fry */ public class TestingWeighers { /** Returns a {@link Weigher} that returns the given {@code constant} for every request. */ static Weigher<Object, Object> constantWeigher(int constant) { return new ConstantWeigher(constant); } /** Returns a {@link Weigher} that uses the integer key as the weight. */
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Mon Dec 04 17:37:03 UTC 2017 - 1.9K bytes - Viewed (0) -
android/guava-tests/benchmark/com/google/common/math/DoubleMathBenchmark.java
import static com.google.common.math.MathBenchmarking.randomPositiveDouble; import com.google.caliper.BeforeExperiment; import com.google.caliper.Benchmark; /** * Tests for the non-rounding methods of {@code DoubleMath}. * * @author Louis Wasserman */ public class DoubleMathBenchmark { private static final double[] positiveDoubles = new double[ARRAY_SIZE]; private static final int[] factorials = new int[ARRAY_SIZE];
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Mon Dec 04 17:37:03 UTC 2017 - 2.5K bytes - Viewed (0) -
android/guava-tests/benchmark/com/google/common/math/LongMathRoundingBenchmark.java
import com.google.caliper.BeforeExperiment; import com.google.caliper.Benchmark; import com.google.caliper.Param; import java.math.RoundingMode; /** * Benchmarks for the rounding methods of {@code LongMath}. * * @author Louis Wasserman */ public class LongMathRoundingBenchmark { @Param({"DOWN", "UP", "FLOOR", "CEILING", "HALF_EVEN", "HALF_UP", "HALF_DOWN"}) RoundingMode mode;
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Mon Dec 04 17:37:03 UTC 2017 - 2.6K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/ImmutableMapValues.java
import com.google.common.annotations.GwtIncompatible; import com.google.common.annotations.J2ktIncompatible; import java.io.Serializable; import java.util.Map.Entry; import javax.annotation.CheckForNull; /** * {@code values()} implementation for {@link ImmutableMap}. * * @author Jesse Wilson * @author Kevin Bourrillion */ @GwtCompatible(emulated = true) @ElementTypesAreNonnullByDefault
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Thu Nov 30 21:54:06 UTC 2023 - 3K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/RegularImmutableAsList.java
import javax.annotation.CheckForNull; import org.checkerframework.checker.nullness.qual.Nullable; /** * An {@link ImmutableAsList} implementation specialized for when the delegate collection is already * backed by an {@code ImmutableList} or array. * * @author Louis Wasserman */ @GwtCompatible(emulated = true) @SuppressWarnings("serial") // uses writeReplace, not default serialization @ElementTypesAreNonnullByDefault
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Thu Nov 30 21:54:06 UTC 2023 - 3K bytes - Viewed (0) -
guava-tests/test/com/google/common/cache/TestingRemovalListeners.java
/** * Utility {@link RemovalListener} implementations intended for use in testing. * * @author mike nonemacher */ @GwtCompatible(emulated = true) class TestingRemovalListeners { /** Returns a new no-op {@code RemovalListener}. */ static <K, V> NullRemovalListener<K, V> nullRemovalListener() { return new NullRemovalListener<>(); } /** Type-inferring factory method for creating a {@link QueuingRemovalListener}. */
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Mon Dec 04 17:37:03 UTC 2017 - 3K bytes - Viewed (0) -
guava-tests/benchmark/com/google/common/math/IntMathRoundingBenchmark.java
import com.google.caliper.BeforeExperiment; import com.google.caliper.Benchmark; import com.google.caliper.Param; import java.math.RoundingMode; /** * Benchmarks for the rounding methods of {@code IntMath}. * * @author Louis Wasserman */ public class IntMathRoundingBenchmark { private static final int[] positive = new int[ARRAY_SIZE]; private static final int[] nonzero = new int[ARRAY_SIZE];
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Mon Dec 04 17:37:03 UTC 2017 - 2.6K bytes - Viewed (0) -
guava-testlib/src/com/google/common/collect/testing/testers/CollectionClearTester.java
import com.google.common.collect.testing.features.CollectionSize; import java.util.ConcurrentModificationException; import java.util.Iterator; import org.junit.Ignore; /** * A generic JUnit test which tests {@code clear()} operations on a collection. Can't be invoked * directly; please see {@link com.google.common.collect.testing.CollectionTestSuiteBuilder}. * * @author George van den Driessche */ @GwtCompatible
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Thu Oct 17 20:00:30 UTC 2024 - 3.1K bytes - Viewed (0) -
guava/src/com/google/common/collect/ImmutableMapKeySet.java
import com.google.common.annotations.J2ktIncompatible; import java.io.Serializable; import java.util.Spliterator; import java.util.function.Consumer; import javax.annotation.CheckForNull; /** * {@code keySet()} implementation for {@link ImmutableMap}. * * @author Jesse Wilson * @author Kevin Bourrillion */ @GwtCompatible(emulated = true) @ElementTypesAreNonnullByDefault
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Thu Nov 30 21:54:06 UTC 2023 - 2.7K bytes - Viewed (0) -
guava/src/com/google/common/collect/NullsFirstOrdering.java
import java.io.Serializable; import javax.annotation.CheckForNull; import org.checkerframework.checker.nullness.qual.NonNull; import org.checkerframework.checker.nullness.qual.Nullable; /** An ordering that treats {@code null} as less than all other values. */ @GwtCompatible(serializable = true) @ElementTypesAreNonnullByDefault final class NullsFirstOrdering<T extends @Nullable Object> extends Ordering<@Nullable T> implements Serializable {
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Mon Mar 27 16:03:47 UTC 2023 - 2.7K bytes - Viewed (0)