- Sort Score
- Num 10 results
- Language All
Results 1921 - 1930 of 3,383 for anchor (0.1 seconds)
-
guava-testlib/src/com/google/common/collect/testing/features/CollectionFeature.java
import java.util.Collection; import java.util.LinkedHashSet; import java.util.Set; import java.util.SortedSet; /** * Optional features of classes derived from {@code Collection}. * * @author George van den Driessche */ @SuppressWarnings("rawtypes") // maybe avoidable if we rework the whole package? @GwtCompatible public enum CollectionFeature implements Feature<Collection> { /**Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Wed Oct 30 16:15:19 GMT 2024 - 4.1K bytes - Click Count (0) -
android/guava/src/com/google/common/util/concurrent/Callables.java
import com.google.common.base.Supplier; import java.util.concurrent.Callable; import org.jspecify.annotations.Nullable; /** * Static utility methods pertaining to the {@link Callable} interface. * * @author Isaac Shum * @since 1.0 */ @GwtCompatible public final class Callables { private Callables() {} /** Creates a {@code Callable} which immediately returns a preset value each time it is called. */Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Aug 07 16:05:33 GMT 2025 - 4.3K bytes - Click Count (0) -
guava-tests/benchmark/com/google/common/hash/HashCodeBenchmark.java
* whereToDiffer} produces no observable change in performance. We want to make sure that the array * equals implementation is *not* short-circuiting to prevent timing-based attacks. Being fast is * only a secondary goal. * * @author Kurt Alfred Kluever */ @NullUnmarked public class HashCodeBenchmark { // Use a statically configured random instance for all of the benchmarks private static final Random random = new Random(42);Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Aug 11 19:31:30 GMT 2025 - 4K bytes - Click Count (0) -
guava-tests/benchmark/com/google/common/math/StatsBenchmark.java
import com.google.caliper.api.SkipThisScenarioException; import java.util.Random; import org.jspecify.annotations.NullUnmarked; /** * Benchmarks for various algorithms for computing the mean and/or variance. * * @author Louis Wasserman */ @NullUnmarked public class StatsBenchmark { enum MeanAlgorithm { SIMPLE { @Override double mean(double[] values) { double sum = 0.0;Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Wed May 14 19:40:47 GMT 2025 - 4.7K bytes - Click Count (0) -
guava-testlib/src/com/google/common/collect/testing/testers/ConcurrentMapPutIfAbsentTester.java
/** * A generic JUnit test which tests {@code putIfAbsent} operations on a concurrent map. Can't be * invoked directly; please see {@link * com.google.common.collect.testing.ConcurrentMapTestSuiteBuilder}. * * @author Louis Wasserman */ @GwtCompatible @Ignore("test runners must not instantiate and run this directly, only via suites we build") // @Ignore affects the Android test runner, which respects JUnit 4 annotations on JUnit 3 tests.Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Sat Dec 21 14:50:24 GMT 2024 - 4.9K bytes - Click Count (0) -
guava-testlib/src/com/google/common/escape/testing/EscaperAsserts.java
import com.google.common.escape.Escaper; import com.google.common.escape.UnicodeEscaper; import java.io.IOException; import junit.framework.Assert; /** * Extra assert methods for testing Escaper implementations. * * @author David Beaumont * @since 15.0 */ @GwtCompatible public final class EscaperAsserts { private EscaperAsserts() {} /** * Asserts that an escaper behaves correctly with respect to null inputs. *Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Tue Jan 18 20:55:09 GMT 2022 - 3.8K bytes - Click Count (0) -
guava-tests/test/com/google/common/io/CharSinkTest.java
import java.io.StringReader; import java.io.Writer; import java.util.EnumSet; import org.jspecify.annotations.NullUnmarked; /** * Tests for the default implementations of {@code CharSink} methods. * * @author Colin Decker */ @NullUnmarked public class CharSinkTest extends IoTestCase { private static final String STRING = ASCII + I18N; private TestCharSink sink; @Override public void setUp() {Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Mar 12 17:47:10 GMT 2026 - 4.7K bytes - Click Count (0) -
guava-tests/test/com/google/common/io/CharSinkTester.java
/** * A generator of {@code TestSuite} instances for testing {@code CharSink} implementations. * Generates tests of all methods on a {@code CharSink} given various inputs written to it. * * @author Colin Decker */ @AndroidIncompatible // TODO(b/230620681): Make this available (even though we won't run it). @NullUnmarked public class CharSinkTester extends SourceSinkTester<CharSink, String, CharSinkFactory> {Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Mar 12 17:47:10 GMT 2026 - 4.5K bytes - Click Count (0) -
guava-tests/test/com/google/common/collect/MultimapBuilderTest.java
import java.util.SortedSet; import junit.framework.TestCase; import org.jspecify.annotations.NullMarked; import org.jspecify.annotations.Nullable; /** * Tests for {@link MultimapBuilder}. * * @author Louis Wasserman */ @GwtCompatible @NullMarked public class MultimapBuilderTest extends TestCase { @J2ktIncompatible @GwtIncompatible // doesn't build without explicit type parameters on build() methodsCreated: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Aug 07 16:05:33 GMT 2025 - 5.2K bytes - Click Count (0) -
guava/src/com/google/common/collect/ImmutableEnumSet.java
import java.util.Spliterator; import java.util.function.Consumer; import org.jspecify.annotations.Nullable; /** * Implementation of {@link ImmutableSet} backed by a non-empty {@link java.util.EnumSet}. * * @author Jared Levy */ @GwtCompatible @SuppressWarnings("serial") // we're overriding default serialization final class ImmutableEnumSet<E extends Enum<E>> extends ImmutableSet<E> {Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Aug 07 16:05:33 GMT 2025 - 4.5K bytes - Click Count (0)