- Sort Score
- Num 10 results
- Language All
Results 1 - 9 of 9 for alternatingKeysAndValues (0.15 seconds)
The search processing time has exceeded the limit. The displayed results may be partial.
-
guava-tests/test/com/google/common/collect/CompactLinkedHashMapTest.java
private void testHasMapEntriesInOrder(Map<?, ?> map, Object... alternatingKeysAndValues) { List<? extends Entry<?, ?>> entries = new ArrayList<>(map.entrySet()); List<Object> keys = new ArrayList<>(map.keySet()); List<Object> values = new ArrayList<>(map.values()); assertThat(alternatingKeysAndValues).hasLength(2 * entries.size()); assertThat(alternatingKeysAndValues).hasLength(2 * keys.size());
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Tue Oct 28 18:44:53 GMT 2025 - 7.8K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/collect/CompactLinkedHashMapTest.java
private void testHasMapEntriesInOrder(Map<?, ?> map, Object... alternatingKeysAndValues) { List<? extends Entry<?, ?>> entries = new ArrayList<>(map.entrySet()); List<Object> keys = new ArrayList<>(map.keySet()); List<Object> values = new ArrayList<>(map.values()); assertThat(alternatingKeysAndValues).hasLength(2 * entries.size()); assertThat(alternatingKeysAndValues).hasLength(2 * keys.size());
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Tue Oct 28 18:44:53 GMT 2025 - 6.7K bytes - Click Count (0) -
android/guava/src/com/google/common/collect/RegularImmutableMap.java
checkEntryNotNull( requireNonNull(alternatingKeysAndValues[0]), requireNonNull(alternatingKeysAndValues[1])); return new RegularImmutableMap<K, V>(null, alternatingKeysAndValues, 1); } checkPositionIndex(n, alternatingKeysAndValues.length >> 1); int tableSize = ImmutableSet.chooseTableSize(n);
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Sat Aug 09 01:14:59 GMT 2025 - 22.5K bytes - Click Count (0) -
android/guava/src/com/google/common/collect/RegularImmutableBiMap.java
this.keyHashTable = null; this.alternatingKeysAndValues = new Object[0]; this.keyOffset = 0; this.size = 0; this.inverse = (RegularImmutableBiMap<V, K>) this; } /** K-to-V constructor. */ RegularImmutableBiMap(@Nullable Object[] alternatingKeysAndValues, int size) { this.alternatingKeysAndValues = alternatingKeysAndValues; this.size = size; this.keyOffset = 0;Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Aug 11 19:31:30 GMT 2025 - 4.2K bytes - Click Count (0) -
android/guava/src/com/google/common/collect/ImmutableBiMap.java
} if (valueComparator != null) { if (entriesUsed) { alternatingKeysAndValues = Arrays.copyOf(alternatingKeysAndValues, 2 * size); } sortEntries(alternatingKeysAndValues, size, valueComparator); } entriesUsed = true; return new RegularImmutableBiMap<K, V>(alternatingKeysAndValues, size); } /**Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Aug 07 16:05:33 GMT 2025 - 22.2K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/collect/ImmutableBiMapTest.java
} private static <K, V> void assertMapEquals(Map<K, V> map, Object... alternatingKeysAndValues) { Map<Object, Object> expected = new LinkedHashMap<>(); for (int i = 0; i < alternatingKeysAndValues.length; i += 2) { expected.put(alternatingKeysAndValues[i], alternatingKeysAndValues[i + 1]); } assertThat(map).containsExactlyEntriesIn(expected).inOrder(); }
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Fri Mar 13 13:01:07 GMT 2026 - 21.4K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/collect/ImmutableListMultimapTest.java
private static <K, V> void assertMultimapEquals( Multimap<K, V> multimap, Object... alternatingKeysAndValues) { assertEquals(multimap.size(), alternatingKeysAndValues.length / 2); int i = 0; for (Entry<K, V> entry : multimap.entries()) { assertEquals(alternatingKeysAndValues[i++], entry.getKey()); assertEquals(alternatingKeysAndValues[i++], entry.getValue()); } } @J2ktIncompatible
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Fri Mar 13 13:01:07 GMT 2026 - 24.2K bytes - Click Count (0) -
guava-tests/test/com/google/common/collect/ImmutableSetMultimapTest.java
private static <K, V> void assertMultimapEquals( Multimap<K, V> multimap, Object... alternatingKeysAndValues) { assertEquals(multimap.size(), alternatingKeysAndValues.length / 2); int i = 0; for (Entry<K, V> entry : multimap.entries()) { assertEquals(alternatingKeysAndValues[i++], entry.getKey()); assertEquals(alternatingKeysAndValues[i++], entry.getValue()); } } @J2ktIncompatible
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Fri Mar 13 13:01:07 GMT 2026 - 28.9K bytes - Click Count (0) -
guava-tests/test/com/google/common/collect/ImmutableSortedMapTest.java
} } } private static <K, V> void assertMapEquals(Map<K, V> map, Object... alternatingKeysAndValues) { Map<Object, Object> expected = new LinkedHashMap<>(); for (int i = 0; i < alternatingKeysAndValues.length; i += 2) { expected.put(alternatingKeysAndValues[i], alternatingKeysAndValues[i + 1]); } assertThat(map).containsExactlyEntriesIn(expected).inOrder(); }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)