- Sort Score
- Num 10 results
- Language All
Results 3371 - 3380 of 4,888 for extend (0.04 seconds)
-
android/guava-testlib/src/com/google/common/collect/testing/testers/MapGetTester.java
// @Ignore affects the Android test runner, which respects JUnit 4 annotations on JUnit 3 tests. @SuppressWarnings("JUnit4ClassUsedInJUnit3") public class MapGetTester<K, V> extends AbstractMapTester<K, V> { @CollectionSize.Require(absent = ZERO) public void testGet_yes() { assertEquals("get(present) should return the associated value", v0(), get(k0())); } public void testGet_no() {Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Nov 14 23:40:07 GMT 2024 - 3.1K bytes - Click Count (0) -
android/guava-testlib/src/com/google/common/collect/testing/testers/MapHashCodeTester.java
// @Ignore affects the Android test runner, which respects JUnit 4 annotations on JUnit 3 tests. @SuppressWarnings("JUnit4ClassUsedInJUnit3") public class MapHashCodeTester<K, V> extends AbstractMapTester<K, V> { public void testHashCode() { int expectedHashCode = 0; for (Entry<K, V> entry : getSampleEntries()) { expectedHashCode += hash(entry); } assertEquals(Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Nov 14 23:40:07 GMT 2024 - 3.1K bytes - Click Count (0) -
android/guava-testlib/test/com/google/common/testing/SerializableTesterTest.java
import org.jspecify.annotations.Nullable; /** * Tests for {@link SerializableTester}. * * @author Nick Kralevich */ @NullUnmarked public class SerializableTesterTest extends TestCase { public void testStringAssertions() { String original = "hello world"; String copy = SerializableTester.reserializeAndAssert(original); assertThat(copy).isNotSameInstanceAs(original); }Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Fri Mar 13 13:01:07 GMT 2026 - 4.1K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/hash/HashingOutputStreamTest.java
import junit.framework.TestCase; import org.jspecify.annotations.NullUnmarked; /** * Tests for {@link HashingOutputStream}. * * @author Zoe Piepmeier */ @NullUnmarked public class HashingOutputStreamTest extends TestCase { private Hasher hasher; private HashFunction hashFunction; private final ByteArrayOutputStream buffer = new ByteArrayOutputStream(); @SuppressWarnings("DoNotMock") @OverrideCreated: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Mar 19 18:53:45 GMT 2026 - 3.2K bytes - Click Count (0) -
android/guava/src/com/google/common/hash/HashingOutputStream.java
import java.io.OutputStream; /** * An {@link OutputStream} that maintains a hash of the data written to it. * * @author Zoe Piepmeier * @since 16.0 */ @Beta public final class HashingOutputStream extends FilterOutputStream { private final Hasher hasher; /** * Creates an output stream that hashes using the given {@link HashFunction}, and forwards all * data written to it to the underlying {@link OutputStream}.Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Sat Dec 21 03:10:51 GMT 2024 - 2.6K bytes - Click Count (0) -
android/guava/src/com/google/common/collect/SneakyThrows.java
import com.google.errorprone.annotations.CanIgnoreReturnValue; /** Static utility method for unchecked throwing of any {@link Throwable}. */ @GwtCompatible final class SneakyThrows<T extends Throwable> { /** * Throws {@code t} as if it were an unchecked {@link Throwable}. * * <p>This method is useful primarily when we make a reflective call to a method with no {@codeCreated: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Dec 30 18:44:22 GMT 2024 - 2.4K bytes - Click Count (0) -
android/guava/src/com/google/common/io/ByteArrayDataInput.java
* of the supertype's contract, which specifies a checked exception. * * @author Kevin Bourrillion * @since 1.0 */ @J2ktIncompatible @GwtIncompatible public interface ByteArrayDataInput extends DataInput { @Override void readFully(byte[] b); @Override void readFully(byte[] b, int off, int len); // not guaranteed to skip n bytes so result should NOT be ignored
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Fri Dec 27 20:25:25 GMT 2024 - 2.7K bytes - Click Count (0) -
android/guava/src/com/google/common/util/concurrent/DirectExecutorService.java
import java.util.concurrent.RejectedExecutionException; import java.util.concurrent.TimeUnit; /** See newDirectExecutorService javadoc for behavioral notes. */ @GwtIncompatible final class DirectExecutorService extends AbstractListeningExecutorService { /** Lock used whenever accessing the state variables (runningTasks, shutdown) of the executor */ private final Object lock = new Object(); /*Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Tue Dec 16 14:23:59 GMT 2025 - 3.4K bytes - Click Count (0) -
guava-testlib/test/com/google/common/testing/SerializableTesterTest.java
import org.jspecify.annotations.Nullable; /** * Tests for {@link SerializableTester}. * * @author Nick Kralevich */ @NullUnmarked public class SerializableTesterTest extends TestCase { public void testStringAssertions() { String original = "hello world"; String copy = SerializableTester.reserializeAndAssert(original); assertThat(copy).isNotSameInstanceAs(original); }Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Fri Mar 13 13:01:07 GMT 2026 - 4.1K bytes - Click Count (0) -
guava-tests/test/com/google/common/collect/FilteredMultimapTest.java
import org.jspecify.annotations.NullUnmarked; /** * Unit tests for {@link Multimaps} filtering methods. * * @author Jared Levy */ @GwtIncompatible // nottested @NullUnmarked public class FilteredMultimapTest extends TestCase { private static final Predicate<Entry<String, Integer>> ENTRY_PREDICATE = entry -> !Objects.equals(entry.getKey(), "badkey") && !Objects.equals(entry.getValue(), 55556);Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Wed Feb 12 03:49:18 GMT 2025 - 3.1K bytes - Click Count (0)