- Sort Score
- Result 10 results
- Languages All
Results 1 - 8 of 8 for TestMap (0.12 sec)
-
guava-tests/test/com/google/common/collect/SynchronizedNavigableMapTest.java
return super.setValue(value); } private static final long serialVersionUID = 0; } static class TestMap<K, V> extends SynchronizedMapTest.TestMap<K, V> implements NavigableMap<K, V> { public TestMap(NavigableMap<K, V> delegate, Object mutex) { super(delegate, mutex); } @Override protected NavigableMap<K, V> delegate() {
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Jul 24 22:09:38 UTC 2024 - 12.2K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/collect/SynchronizedMapTest.java
protected <K, V> Map<K, V> create() { TestMap<K, V> inner = new TestMap<>(new HashMap<K, V>(), mutex); Map<K, V> outer = Synchronized.map(inner, mutex); return outer; } static class TestMap<K, V> extends ForwardingMap<K, V> implements Serializable { public final Object mutex; private Map<K, V> delegate; public TestMap(Map<K, V> delegate, Object mutex) { checkNotNull(mutex);
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Tue Aug 06 17:23:04 UTC 2024 - 5.8K bytes - Viewed (0) -
guava-tests/test/com/google/common/collect/SynchronizedMapTest.java
protected <K, V> Map<K, V> create() { TestMap<K, V> inner = new TestMap<>(new HashMap<K, V>(), mutex); Map<K, V> outer = Synchronized.map(inner, mutex); return outer; } static class TestMap<K, V> extends ForwardingMap<K, V> implements Serializable { public final Object mutex; private Map<K, V> delegate; public TestMap(Map<K, V> delegate, Object mutex) { checkNotNull(mutex);
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Tue Aug 06 17:23:04 UTC 2024 - 5.8K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/collect/CollectSpliteratorsTest.java
import junit.framework.TestCase; /** Tests for {@code CollectSpliterators}. */ @GwtCompatible @ElementTypesAreNonnullByDefault public class CollectSpliteratorsTest extends TestCase { public void testMap() { SpliteratorTester.of( () -> CollectSpliterators.map( Arrays.spliterator(new String[] {"a", "b", "c", "d", "e"}), Ascii::toUpperCase))
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Thu Oct 31 14:20:11 UTC 2024 - 4.1K bytes - Viewed (0) -
guava-tests/test/com/google/common/base/JoinerTest.java
} public void test_useForNull_twice() { Joiner j = Joiner.on("x").useForNull("y"); assertThrows(UnsupportedOperationException.class, () -> j.useForNull("y")); } public void testMap() { MapJoiner j = Joiner.on(';').withKeyValueSeparator(':'); assertEquals("", j.join(ImmutableMap.of())); assertEquals(":", j.join(ImmutableMap.of("", "")));
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Tue Sep 17 18:14:12 UTC 2024 - 11.7K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/io/FilesTest.java
String i18nHash = "7fa826962ce2079c8334cd4ebf33aea4"; assertEquals(i18nHash, Files.hash(i18nFile, Hashing.md5()).toString()); } public void testMap() throws IOException { // Test data int size = 1024; byte[] bytes = newPreFilledByteArray(size); // Setup File file = createTempFile(); Files.write(bytes, file); // Test
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Tue Jul 23 14:22:54 UTC 2024 - 22.1K bytes - Viewed (0) -
guava-tests/test/com/google/common/io/FilesTest.java
String i18nHash = "7fa826962ce2079c8334cd4ebf33aea4"; assertEquals(i18nHash, Files.hash(i18nFile, Hashing.md5()).toString()); } public void testMap() throws IOException { // Test data int size = 1024; byte[] bytes = newPreFilledByteArray(size); // Setup File file = createTempFile(); Files.write(bytes, file); // Test
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Tue Jul 23 14:22:54 UTC 2024 - 22.1K bytes - Viewed (0) -
src/bytes/bytes_test.go
const step = 13 if r >= 'a' && r <= 'z' { return ((r - 'a' + step) % 26) + 'a' } if r >= 'A' && r <= 'Z' { return ((r - 'A' + step) % 26) + 'A' } return r } func TestMap(t *testing.T) { // Run a couple of awful growth/shrinkage tests a := tenRunes('a') // 1. Grow. This triggers two reallocations in Map. maxRune := func(r rune) rune { return unicode.MaxRune }
Registered: Tue Nov 05 11:13:11 UTC 2024 - Last Modified: Mon Aug 19 19:09:04 UTC 2024 - 61.2K bytes - Viewed (0)