Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for alternatingKeysAndValues (0.38 sec)

  1. android/guava/src/com/google/common/collect/ImmutableMap.java

        Builder(int initialCapacity) {
          this.alternatingKeysAndValues = new @Nullable Object[2 * initialCapacity];
          this.size = 0;
          this.entriesUsed = false;
        }
    
        private void ensureCapacity(int minCapacity) {
          if (minCapacity * 2 > alternatingKeysAndValues.length) {
            alternatingKeysAndValues =
                Arrays.copyOf(
                    alternatingKeysAndValues,
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 41.5K bytes
    - Viewed (0)
  2. 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();
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 22.3K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/collect/ImmutableMapTest.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();
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 36.6K bytes
    - Viewed (0)
  4. 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
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 23.8K bytes
    - Viewed (0)
  5. 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
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 25.4K bytes
    - Viewed (0)
  6. android/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
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 26.9K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/collect/ImmutableMapTest.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();
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 41.1K bytes
    - Viewed (0)
Back to top