- Sort Score
- Num 10 results
- Language All
Results 181 - 190 of 472 for Generic (0.05 seconds)
-
guava-tests/test/com/google/common/reflect/ImmutableTypeToInstanceMapTest.java
assertEquals(1, map.size()); assertEquals(ImmutableList.of(1), map.getInstance(type)); } public void testGenericArrayType() { @SuppressWarnings("unchecked") // Trying to test generic array ImmutableList<Integer>[] array = (ImmutableList<Integer>[]) new ImmutableList<?>[] {ImmutableList.of(1)}; TypeToken<ImmutableList<Integer>[]> type = new TypeToken<ImmutableList<Integer>[]>() {};
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Dec 19 18:03:30 GMT 2024 - 6.9K bytes - Click Count (0) -
android/guava-testlib/src/com/google/common/collect/testing/testers/CollectionRemoveAllTester.java
import com.google.common.collect.testing.features.CollectionSize; import java.util.AbstractSet; import java.util.ConcurrentModificationException; import java.util.Iterator; import org.junit.Ignore; /** * A generic JUnit test which tests {@code removeAll} operations on a collection. Can't be invoked * directly; please see {@link com.google.common.collect.testing.CollectionTestSuiteBuilder}. * * @author George van den DriesscheCreated: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Nov 14 23:40:07 GMT 2024 - 7.7K bytes - Click Count (0) -
android/guava-testlib/src/com/google/common/collect/testing/testers/ConcurrentMapReplaceTester.java
import com.google.common.collect.testing.features.MapFeature; import java.util.concurrent.ConcurrentMap; import org.jspecify.annotations.NullMarked; import org.junit.Ignore; /** * A generic JUnit test which tests {@code replace(K, V)} operations on a concurrent map. Can't be * invoked directly; please see {@link * com.google.common.collect.testing.ConcurrentMapTestSuiteBuilder}. * * @author Louis WassermanCreated: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Sat Dec 21 14:50:24 GMT 2024 - 3.9K bytes - Click Count (0) -
android/guava-testlib/src/com/google/common/collect/testing/testers/MapReplaceTester.java
import com.google.common.collect.testing.features.CollectionSize; import com.google.common.collect.testing.features.MapFeature; import java.util.Map; import org.junit.Ignore; /** * A generic JUnit test which tests {@link Map#replace(Object, Object)}. Can't be invoked directly; * please see {@link com.google.common.collect.testing.ConcurrentMapTestSuiteBuilder}. * * @author Louis Wasserman */ @GwtCompatibleCreated: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Oct 31 14:51:04 GMT 2024 - 4K bytes - Click Count (0) -
android/guava-testlib/src/com/google/common/collect/testing/testers/CollectionIteratorTester.java
import java.util.Map.Entry; import java.util.NoSuchElementException; import java.util.Set; import org.jspecify.annotations.NullMarked; import org.jspecify.annotations.Nullable; import org.junit.Ignore; /** * A generic JUnit test which tests {@code iterator} operations on a collection. Can't be invoked * directly; please see {@link com.google.common.collect.testing.CollectionTestSuiteBuilder}. * * @author Chris Povirk */ @GwtCompatibleCreated: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Aug 07 16:05:33 GMT 2025 - 6.1K bytes - Click Count (0) -
internal/config/errors-utils.go
func ErrorToErr(err error) Err { if err == nil { return Err{} } // If this is already a Err, do nothing if e, ok := err.(Err); ok { return e } // Show a generic message for known golang errors if errors.Is(err, syscall.EADDRINUSE) { return ErrPortAlreadyInUse(err).Msg("Specified port is already in use") } else if errors.Is(err, syscall.EACCES) || errors.Is(err, syscall.EPERM) {
Created: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Fri Aug 29 02:39:48 GMT 2025 - 3.8K bytes - Click Count (0) -
guava-testlib/src/com/google/common/collect/testing/testers/CollectionRemoveAllTester.java
import com.google.common.collect.testing.features.CollectionSize; import java.util.AbstractSet; import java.util.ConcurrentModificationException; import java.util.Iterator; import org.junit.Ignore; /** * A generic JUnit test which tests {@code removeAll} operations on a collection. Can't be invoked * directly; please see {@link com.google.common.collect.testing.CollectionTestSuiteBuilder}. * * @author George van den DriesscheCreated: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Nov 14 23:40:07 GMT 2024 - 7.7K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/reflect/TypeTokenResolutionTest.java
public void testGenericInterface() { // test the 1st generic interface on the class Type fType = Supplier.class.getTypeParameters()[0]; assertEquals( Integer.class, TypeToken.of(IntegerStringFunction.class).resolveType(fType).getRawType()); // test the 2nd generic interface on the class Type predicateParameterType = Predicate.class.getTypeParameters()[0];
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Mar 12 17:47:10 GMT 2026 - 19.6K bytes - Click Count (0) -
guava-tests/test/com/google/common/reflect/TypeTokenResolutionTest.java
public void testGenericInterface() { // test the 1st generic interface on the class Type fType = Supplier.class.getTypeParameters()[0]; assertEquals( Integer.class, TypeToken.of(IntegerStringFunction.class).resolveType(fType).getRawType()); // test the 2nd generic interface on the class Type predicateParameterType = Predicate.class.getTypeParameters()[0];
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Mar 12 17:47:10 GMT 2026 - 19.6K bytes - Click Count (0) -
guava-testlib/src/com/google/common/collect/testing/testers/MapMergeTester.java
import java.lang.reflect.Method; import java.util.Hashtable; import java.util.Map; import junit.framework.AssertionFailedError; import org.junit.Ignore; /** * A generic JUnit test which tests {@link Map#merge}. Can't be invoked directly; please see {@link * com.google.common.collect.testing.MapTestSuiteBuilder}. * * @author Louis Wasserman */ @GwtCompatibleCreated: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Aug 07 16:05:33 GMT 2025 - 6.8K bytes - Click Count (0)