- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 204 for Keys (0.16 sec)
-
guava-tests/test/com/google/common/collect/ImmutableMapFloodingTest.java
public Map<Object, Object> create(List<?> keys) { return ImmutableMap.copyOf( Lists.transform(keys, k -> Maps.immutableEntry(k, "dummy value"))); } }, BUILDER_PUT_ONE_BY_ONE { @Override public Map<Object, Object> create(List<?> keys) { ImmutableMap.Builder<Object, Object> builder = ImmutableMap.builder(); for (Object k : keys) { builder.put(k, "dummy value");
Java - Registered: Fri Apr 19 12:43:09 GMT 2024 - Last Modified: Tue Oct 03 21:01:39 GMT 2023 - 3.4K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/ImmutableSortedMap.java
this.keys = new @Nullable Object[initialCapacity]; this.values = new @Nullable Object[initialCapacity]; } private void ensureCapacity(int minCapacity) { if (minCapacity > keys.length) { int newCapacity = ImmutableCollection.Builder.expandedCapacity(keys.length, minCapacity); this.keys = Arrays.copyOf(keys, newCapacity);
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Wed May 01 18:44:57 GMT 2024 - 53.2K bytes - Viewed (0) -
guava-testlib/src/com/google/common/collect/testing/SampleElements.java
SampleElements<Entry<K, V>> mapEntries(SampleElements<K> keys, SampleElements<V> values) { return new SampleElements<>( Helpers.mapEntry(keys.e0(), values.e0()), Helpers.mapEntry(keys.e1(), values.e1()), Helpers.mapEntry(keys.e2(), values.e2()), Helpers.mapEntry(keys.e3(), values.e3()), Helpers.mapEntry(keys.e4(), values.e4())); } public E e0() { return e0; }
Java - Registered: Fri Apr 26 12:43:10 GMT 2024 - Last Modified: Wed Feb 21 16:49:06 GMT 2024 - 4.1K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/collect/testing/SampleElements.java
SampleElements<Entry<K, V>> mapEntries(SampleElements<K> keys, SampleElements<V> values) { return new SampleElements<>( Helpers.mapEntry(keys.e0(), values.e0()), Helpers.mapEntry(keys.e1(), values.e1()), Helpers.mapEntry(keys.e2(), values.e2()), Helpers.mapEntry(keys.e3(), values.e3()), Helpers.mapEntry(keys.e4(), values.e4())); } public E e0() { return e0; }
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Wed Feb 21 16:49:06 GMT 2024 - 4.1K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/collect/MapsCollectionTest.java
map.putAll(ENTRIES_TO_FILTER); return Maps.filterKeys(map, FILTER_KEYS); } }) .named("Maps.filterKeys[Map, Predicate]") .withFeatures( MapFeature.ALLOWS_NULL_KEYS, MapFeature.ALLOWS_NULL_VALUES, MapFeature.ALLOWS_ANY_NULL_QUERIES,
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Thu Feb 22 20:09:59 GMT 2024 - 32.2K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/LinkedListMultimap.java
} } @CheckForNull private transient Node<K, V> head; // the head for all keys @CheckForNull private transient Node<K, V> tail; // the tail for all keys private transient Map<K, KeyList<K, V>> keyToKeyList; private transient int size; /* * Tracks modifications to keyToKeyList so that addition or removal of keys invalidates * preexisting iterators. This does *not* track simple additions and removals of values
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Fri Oct 13 14:11:58 GMT 2023 - 27.2K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/Multimap.java
import javax.annotation.CheckForNull; import org.checkerframework.checker.nullness.qual.Nullable; /** * A collection that maps keys to values, similar to {@link Map}, but in which each key may be * associated with <i>multiple</i> values. You can visualize the contents of a multimap either as a * map from keys to <i>nonempty</i> collections of values: * * <ul> * <li>a → 1, 2 * <li>b → 3 * </ul> *
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Sat Jun 17 14:40:53 GMT 2023 - 15.1K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/EnumHashBiMap.java
import java.util.Map; import javax.annotation.CheckForNull; import org.checkerframework.checker.nullness.qual.Nullable; /** * A {@code BiMap} backed by an {@code EnumMap} instance for keys-to-values, and a {@code HashMap} * instance for values-to-keys. Null keys are not permitted, but null values are. An {@code * EnumHashBiMap} and its inverse are both serializable. * * <p>See the Guava User Guide article on <a href=
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Thu Aug 24 01:40:03 GMT 2023 - 5.4K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/LinkedHashMultimap.java
* returns collections whose iterators follow the ordering in which the data was added to the * multimap. * * <p>The collections returned by {@code keySet}, {@code keys}, and {@code asMap} iterate through * the keys in the order they were first added to the multimap. Similarly, {@code get}, {@code * removeAll}, and {@code replaceValues} return collections that iterate through the values in the
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Thu Feb 22 21:19:52 GMT 2024 - 23.6K bytes - Viewed (0) -
guava-testlib/src/com/google/common/collect/testing/MapInterfaceTest.java
return; } Set<K> keys = map.keySet(); K key = keys.iterator().next(); if (supportsRemove) { int initialSize = map.size(); keys.remove(key); assertEquals(initialSize - 1, map.size()); assertFalse(map.containsKey(key)); } else { try { keys.remove(key); fail("Expected UnsupportedOperationException.");
Java - Registered: Fri Apr 26 12:43:10 GMT 2024 - Last Modified: Wed Feb 21 16:49:06 GMT 2024 - 45.9K bytes - Viewed (0)