- Sort Score
- Result 10 results
- Languages All
Results 31 - 40 of 52 for V1 (0.68 sec)
-
android/guava/src/com/google/common/cache/CacheBuilder.java
*/ public <K1 extends K, V1 extends V> CacheBuilder<K1, V1> removalListener( RemovalListener<? super K1, ? super V1> listener) { checkState(this.removalListener == null); // safely limiting the kinds of caches this can produce @SuppressWarnings("unchecked") CacheBuilder<K1, V1> me = (CacheBuilder<K1, V1>) this; me.removalListener = checkNotNull(listener); return me;
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Thu Feb 15 16:12:13 GMT 2024 - 44.8K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/Maps.java
@Override @ParametricNullness public V2 apply(@ParametricNullness V1 v1) { return transformer.transformEntry(key, v1); } }; } /** Views an entry transformer as a function from {@code Entry} to values. */ static <K extends @Nullable Object, V1 extends @Nullable Object, V2 extends @Nullable Object> Function<Entry<K, V1>, V2> asEntryToValueFunction(
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Wed May 01 18:44:57 GMT 2024 - 159.6K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/CollectCollectors.java
checkNotNull(keyFunction); checkNotNull(valueFunction); return Collector.of( () -> new EnumMapAccumulator<K, V>( (v1, v2) -> { throw new IllegalArgumentException("Multiple values for key: " + v1 + ", " + v2); }), (accum, t) -> { /* * We assign these to variables before calling checkNotNull to work around a bug in our
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Wed Feb 21 16:21:40 GMT 2024 - 17.2K bytes - Viewed (0) -
guava-tests/test/com/google/common/collect/HashBasedTableTest.java
assertThat(table.rowKeySet()).containsExactly("r0", "r1", "r2", "r3", "r4").inOrder(); assertThat(table.columnKeySet()).containsExactly("c0", "c1", "c2", "c3", "c4").inOrder(); assertThat(table.values()).containsExactly("v0", "v1", "v2", "v3", "v4").inOrder(); } public void testCreateWithValidSizes() { Table<String, Integer, Character> table1 = HashBasedTable.create(100, 20); table1.put("foo", 1, 'a');
Java - Registered: Fri Apr 19 12:43:09 GMT 2024 - Last Modified: Mon Mar 04 16:54:11 GMT 2024 - 3.6K bytes - Viewed (0) -
guava-testlib/src/com/google/common/collect/testing/AbstractMapTester.java
Java - Registered: Fri Apr 26 12:43:10 GMT 2024 - Last Modified: Wed Feb 21 16:49:06 GMT 2024 - 7.5K bytes - Viewed (0) -
guava/src/com/google/common/collect/CollectCollectors.java
checkNotNull(keyFunction); checkNotNull(valueFunction); return Collector.of( () -> new EnumMapAccumulator<K, V>( (v1, v2) -> { throw new IllegalArgumentException("Multiple values for key: " + v1 + ", " + v2); }), (accum, t) -> { /* * We assign these to variables before calling checkNotNull to work around a bug in our
Java - Registered: Fri Apr 05 12:43:09 GMT 2024 - Last Modified: Wed Feb 21 16:21:40 GMT 2024 - 16.7K bytes - Viewed (0) -
guava-testlib/src/com/google/common/collect/testing/google/SetMultimapPutAllTester.java
public class SetMultimapPutAllTester<K, V> extends AbstractMultimapTester<K, V, SetMultimap<K, V>> { @MapFeature.Require(SUPPORTS_PUT) public void testPutAllHandlesDuplicates() { List<V> valuesToPut = Arrays.asList(v0(), v1(), v0()); for (K k : sampleKeys()) { resetContainer(); Set<V> expectedValues = copyToSet(multimap().get(k)); multimap().putAll(k, valuesToPut); expectedValues.addAll(valuesToPut);
Java - Registered: Fri Apr 26 12:43:10 GMT 2024 - Last Modified: Tue Feb 20 17:00:05 GMT 2024 - 1.7K bytes - Viewed (0) -
guava-tests/test/com/google/common/collect/TreeRangeMapTest.java
RangeMap<Integer, Integer> rangeMap = TreeRangeMap.create(); rangeMap.put(Range.closedOpen(1, 2), 1); rangeMap.put(Range.closedOpen(3, 4), 2); rangeMap.merge(Range.closedOpen(0, 5), null, (v1, v2) -> v1 + 1); // {[1..2): 2, [3..4): 3} assertEquals( new ImmutableMap.Builder<>() .put(Range.closedOpen(1, 2), 2) .put(Range.closedOpen(3, 4), 3) .build(),
Java - Registered: Fri Apr 19 12:43:09 GMT 2024 - Last Modified: Thu Feb 22 20:09:59 GMT 2024 - 33.2K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/testing/ClassSanityTester.java
* type}, the distinct values of {@code type} can be passed as parameters to create {@code Foo} * instances that are unequal. * * <p>Calling {@code setDistinctValues(type, v1, v2)} also sets the default value for {@code type} * that's used for {@link #testNulls}. * * <p>Only necessary for types where {@link ClassSanityTester} doesn't already know how to create * distinct values.
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Thu Feb 08 17:31:55 GMT 2024 - 33K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/collect/testing/google/BiMapPutTester.java
initMapWithNullKey(); getMap().forcePut(null, v1()); expectContents(Helpers.mapEntry((K) null, v1())); assertFalse(getMap().containsValue(v0())); assertTrue(getMap().containsValue(v1())); assertTrue(getMap().inverse().containsKey(v1())); assertNull(getMap().inverse().get(v1())); assertEquals(v1(), getMap().get(null)); assertEquals(1, getMap().size()); }
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Tue Feb 20 17:00:05 GMT 2024 - 4.9K bytes - Viewed (0)