- Sort Score
- Num 10 results
- Language All
Results 41 - 50 of 73 for buildOrThrow (0.07 seconds)
-
android/guava/src/com/google/common/collect/ImmutableSortedMap.java
* .put(1, "one") * .put(2, "two") * .put(3, "three") * .buildOrThrow(); * } * * <p>For <i>small</i> immutable sorted maps, the {@code ImmutableSortedMap.of()} methods are even * more convenient. * * <p>Builder instances can be reused - it is safe to call {@link #buildOrThrow} multiple times to * build multiple maps in series. Each map is a superset of the maps created before it.
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Jan 08 18:10:02 GMT 2026 - 54.7K bytes - Click Count (0) -
guava-tests/test/com/google/common/collect/ImmutableSortedMapTest.java
ImmutableSortedMap<String, Integer> expected = ImmutableSortedMap.<String, Integer>naturalOrder() .put("one", 1) .put("three", 3) .put("two", 2) .buildOrThrow(); CollectorTester.of(collector, equivalence) .expectCollects(expected, mapEntry("one", 1), mapEntry("two", 2), mapEntry("three", 3)); } public void testToImmutableSortedMap_withComparator() {
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Fri Mar 13 13:01:07 GMT 2026 - 29.8K bytes - Click Count (0) -
guava-tests/test/com/google/common/hash/MacHashFunctionTest.java
.put("HmacSHA1", SHA1_KEY, hmacSha1(SHA1_KEY)) .put("HmacSHA256", SHA256_KEY, hmacSha256(SHA256_KEY)) .put("HmacSHA512", SHA512_KEY, hmacSha512(SHA512_KEY)) .buildOrThrow(); public void testNulls() { NullPointerTester tester = new NullPointerTester().setDefault(String.class, "HmacMD5").setDefault(Key.class, MD5_KEY);
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Mar 19 18:53:45 GMT 2026 - 14.2K bytes - Click Count (0) -
android/guava/src/com/google/common/cache/CacheBuilderSpec.java
.put("expireAfterWrite", new WriteDurationParser()) .put("refreshAfterWrite", new RefreshDurationParser()) .put("refreshInterval", new RefreshDurationParser()) .buildOrThrow(); @VisibleForTesting @Nullable Integer initialCapacity; @VisibleForTesting @Nullable Long maximumSize; @VisibleForTesting @Nullable Long maximumWeight; @VisibleForTesting @Nullable Integer concurrencyLevel;
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Wed Apr 01 17:27:13 GMT 2026 - 18.2K bytes - Click Count (0) -
guava/src/com/google/common/cache/CacheBuilderSpec.java
.put("expireAfterWrite", new WriteDurationParser()) .put("refreshAfterWrite", new RefreshDurationParser()) .put("refreshInterval", new RefreshDurationParser()) .buildOrThrow(); @VisibleForTesting @Nullable Integer initialCapacity; @VisibleForTesting @Nullable Long maximumSize; @VisibleForTesting @Nullable Long maximumWeight; @VisibleForTesting @Nullable Integer concurrencyLevel;
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Wed Apr 01 17:27:13 GMT 2026 - 18.2K bytes - Click Count (0) -
guava/src/com/google/common/collect/RegularImmutableMap.java
} duplicates.put(effectiveEntry, true); dupCount++; // Make sure we are not overwriting the original entries array, in case we later do // buildOrThrow(). We would want an exception to include two values for the duplicate key. if (entries == entryArray) { // Temporary variable is necessary to defeat bad smartcast (entries adopting the type ofCreated: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Fri Dec 26 20:08:09 GMT 2025 - 15.7K bytes - Click Count (0) -
guava-testlib/src/com/google/common/collect/testing/google/MapGenerators.java
for (Entry<String, String> entry : entries) { checkNotNull(entry); builder.put(entry.getKey(), entry.getValue()); } return builder.buildOrThrow(); } } public static class ImmutableMapCopyOfGenerator extends TestStringMapGenerator { @Override protected Map<String, String> create(Entry<String, String>[] entries) {
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Fri Dec 26 20:08:09 GMT 2025 - 8.6K bytes - Click Count (0) -
android/guava-testlib/src/com/google/common/collect/testing/google/MapGenerators.java
for (Entry<String, String> entry : entries) { checkNotNull(entry); builder.put(entry.getKey(), entry.getValue()); } return builder.buildOrThrow(); } } public static class ImmutableMapCopyOfGenerator extends TestStringMapGenerator { @Override protected Map<String, String> create(Entry<String, String>[] entries) {
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Fri Dec 26 20:08:09 GMT 2025 - 8.6K bytes - Click Count (0) -
android/guava/src/com/google/common/collect/SparseImmutableTable.java
} this.rowMap = rowBuilder.buildOrThrow(); ImmutableMap.Builder<C, ImmutableMap<R, V>> columnBuilder = new ImmutableMap.Builder<>(columns.size()); for (Entry<C, Map<R, V>> col : columns.entrySet()) { columnBuilder.put(col.getKey(), ImmutableMap.copyOf(col.getValue())); } this.columnMap = columnBuilder.buildOrThrow(); } @OverrideCreated: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Sep 22 21:07:18 GMT 2025 - 5.3K bytes - Click Count (1) -
guava/src/com/google/common/collect/SparseImmutableTable.java
} this.rowMap = rowBuilder.buildOrThrow(); ImmutableMap.Builder<C, ImmutableMap<R, V>> columnBuilder = new ImmutableMap.Builder<>(columns.size()); for (Entry<C, Map<R, V>> col : columns.entrySet()) { columnBuilder.put(col.getKey(), ImmutableMap.copyOf(col.getValue())); } this.columnMap = columnBuilder.buildOrThrow(); } @OverrideCreated: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Sep 22 21:07:18 GMT 2025 - 5.3K bytes - Click Count (0)