- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 15 for Unhashables (0.39 sec)
-
android/guava-tests/test/com/google/common/collect/ImmutableMultimapTest.java
SampleElements<UnhashableObject> unhashables = new Unhashables(); Multimap<Integer, UnhashableObject> multimap = ImmutableMultimap.of(0, unhashables.e0()); assertEquals(1, multimap.get(0).size()); assertTrue(multimap.get(0).contains(unhashables.e0())); } public void testUnhashableMixedValues() { SampleElements<UnhashableObject> unhashables = new Unhashables(); Multimap<Integer, Object> multimap =
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Fri May 17 15:27:58 UTC 2024 - 5K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/collect/testing/TestUnhashableCollectionGenerator.java
*/ package com.google.common.collect.testing; import com.google.common.annotations.GwtCompatible; import com.google.common.collect.testing.SampleElements.Unhashables; import java.util.Collection; import java.util.List; /** * Creates collections containing unhashable sample elements, to be tested. * * @author Regina O'Dell */ @GwtCompatible @ElementTypesAreNonnullByDefault
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Wed Feb 21 16:49:06 UTC 2024 - 1.9K bytes - Viewed (0) -
guava-testlib/src/com/google/common/collect/testing/TestUnhashableCollectionGenerator.java
*/ package com.google.common.collect.testing; import com.google.common.annotations.GwtCompatible; import com.google.common.collect.testing.SampleElements.Unhashables; import java.util.Collection; import java.util.List; /** * Creates collections containing unhashable sample elements, to be tested. * * @author Regina O'Dell */ @GwtCompatible @ElementTypesAreNonnullByDefault
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Wed Feb 21 16:49:06 UTC 2024 - 1.9K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/collect/testing/SampleElements.java
public E e2() { return e2; } public E e3() { return e3; } public E e4() { return e4; } public static class Unhashables extends SampleElements<UnhashableObject> { public Unhashables() { super( new UnhashableObject(1), new UnhashableObject(2), new UnhashableObject(3), new UnhashableObject(4),
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Wed Feb 21 16:49:06 UTC 2024 - 4.1K bytes - Viewed (0) -
guava-testlib/src/com/google/common/collect/testing/SampleElements.java
public E e2() { return e2; } public E e3() { return e3; } public E e4() { return e4; } public static class Unhashables extends SampleElements<UnhashableObject> { public Unhashables() { super( new UnhashableObject(1), new UnhashableObject(2), new UnhashableObject(3), new UnhashableObject(4),
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Wed Feb 21 16:49:06 UTC 2024 - 4.1K bytes - Viewed (0) -
test/recover2.go
} type T struct { a, b int c []int } func test5() { defer mustRecover("uncomparable") var x T var z interface{} = x println(z != z) } func test6() { defer mustRecover("unhashable type main.T") var x T var z interface{} = x m := make(map[interface{}]int) m[z] = 1 } func test7() { defer mustRecover("divide by zero") var x, y int println(x / y)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Sep 03 20:41:29 UTC 2019 - 1.2K bytes - Viewed (0) -
guava-testlib/src/com/google/common/collect/testing/UnhashableObject.java
* limitations under the License. */ package com.google.common.collect.testing; import com.google.common.annotations.GwtCompatible; import org.checkerframework.checker.nullness.qual.Nullable; /** * An unhashable object to be used in testing as values in our collections. * * @author Regina O'Dell */ @GwtCompatible public class UnhashableObject implements Comparable<UnhashableObject> { private final int value;
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Thu Apr 20 11:19:03 UTC 2023 - 1.6K bytes - Viewed (0) -
guava-testlib/src/com/google/common/collect/testing/testers/ListHashCodeTester.java
expectedHashCode, getList().hashCode()); } /** * Returns the {@link Method} instance for {@link #testHashCode()} so that list tests on * unhashable objects can suppress it with {@code FeatureSpecificTestSuiteBuilder.suppressing()}. */ @J2ktIncompatible @GwtIncompatible // reflection public static Method getHashCodeMethod() {
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Wed Feb 21 16:49:06 UTC 2024 - 1.9K bytes - Viewed (0) -
guava-testlib/src/com/google/common/collect/testing/testers/SetHashCodeTester.java
expectedHashCode, getSet().hashCode()); } /** * Returns the {@link Method} instances for the test methods in this class which call {@code * hashCode()} on the set values so that set tests on unhashable objects can suppress it with * {@code FeatureSpecificTestSuiteBuilder.suppressing()}. */ @J2ktIncompatible @GwtIncompatible // reflection public static Method[] getHashCodeMethods() {
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Wed Feb 21 16:49:06 UTC 2024 - 3K bytes - Viewed (0) -
src/runtime/alg.go
// typehash, but we want to report the topmost type in // the error text (e.g. in a struct with a field of slice type // we want to report the struct, not the slice). panic(errorString("hash of unhashable type " + toRType(t).string())) } if isDirectIface(t) { return c1 * typehash(t, unsafe.Pointer(&a.data), h^c0) } else { return c1 * typehash(t, a.data, h^c0) } }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 29 17:58:53 UTC 2024 - 13.6K bytes - Viewed (0)