Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 510 for maps (0.17 sec)

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

          implements MapDifference<K, V> {
        final Map<K, V> onlyOnLeft;
        final Map<K, V> onlyOnRight;
        final Map<K, V> onBoth;
        final Map<K, ValueDifference<V>> differences;
    
        MapDifferenceImpl(
            Map<K, V> onlyOnLeft,
            Map<K, V> onlyOnRight,
            Map<K, V> onBoth,
            Map<K, ValueDifference<V>> differences) {
          this.onlyOnLeft = unmodifiableMap(onlyOnLeft);
    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)
  2. guava-tests/test/com/google/common/collect/MapsCollectionTest.java

                      @Override
                      protected Map<String, String> create(Entry<String, String>[] entries) {
                        Map<String, String> map = Maps.newHashMap();
                        putEntries(map, entries);
                        map.putAll(ENTRIES_TO_FILTER);
                        map = Maps.filterEntries(map, FILTER_ENTRIES_1);
                        return Maps.filterEntries(map, FILTER_ENTRIES_2);
                      }
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Feb 22 20:09:59 GMT 2024
    - 32.2K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/collect/LinkedHashMultimapTest.java

        assertEquals(Maps.immutableEntry("foo", 5), entryIterator.next());
        assertEquals(Maps.immutableEntry("bar", 4), entryIterator.next());
        assertEquals(Maps.immutableEntry("foo", 3), entryIterator.next());
        assertEquals(Maps.immutableEntry("cow", 2), entryIterator.next());
        assertEquals(Maps.immutableEntry("bar", 1), entryIterator.next());
    
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Feb 21 10:16:44 GMT 2024
    - 18.6K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/collect/AbstractTable.java

        for (Map<C, V> row : rowMap().values()) {
          if (row.containsValue(value)) {
            return true;
          }
        }
        return false;
      }
    
      @Override
      public boolean contains(@CheckForNull Object rowKey, @CheckForNull Object columnKey) {
        Map<C, V> row = Maps.safeGet(rowMap(), rowKey);
        return row != null && Maps.safeContainsKey(row, columnKey);
      }
    
      @Override
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Jul 15 15:41:16 GMT 2021
    - 6.1K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/collect/MapDifference.java

      Map<K, V> entriesOnlyOnRight();
    
      /**
       * Returns an unmodifiable map containing the entries that appear in both maps; that is, the
       * intersection of the two maps.
       */
      Map<K, V> entriesInCommon();
    
      /**
       * Returns an unmodifiable map describing keys that appear in both maps, but with different
       * values.
       */
      Map<K, ValueDifference<V>> entriesDiffering();
    
      /**
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Aug 04 13:28:27 GMT 2021
    - 3.5K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/collect/ForwardingMapTest.java

            .addEqualityGroup(map2, wrap(map2))
            .testEquals();
      }
    
      public void testStandardEntrySet() throws InvocationTargetException {
        @SuppressWarnings("unchecked")
        final Map<String, Boolean> map = mock(Map.class);
    
        Map<String, Boolean> forward =
            new ForwardingMap<String, Boolean>() {
              @Override
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Apr 19 19:24:36 GMT 2023
    - 12.7K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/collect/ForwardingMapTest.java

            .addEqualityGroup(map2, wrap(map2))
            .testEquals();
      }
    
      public void testStandardEntrySet() throws InvocationTargetException {
        @SuppressWarnings("unchecked")
        final Map<String, Boolean> map = mock(Map.class);
    
        Map<String, Boolean> forward =
            new ForwardingMap<String, Boolean>() {
              @Override
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Apr 19 19:24:36 GMT 2023
    - 12.7K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/collect/MapsTransformValuesTest.java

    import com.google.common.base.Functions;
    import java.util.Map;
    
    /**
     * Tests for {@link Maps#transformValues(Map, Function)}.
     *
     * @author Isaac Shum
     */
    @GwtCompatible
    @ElementTypesAreNonnullByDefault
    public class MapsTransformValuesTest extends AbstractMapsTransformValuesTest {
      @Override
      protected Map<String, String> makeEmptyMap() {
        return Maps.transformValues(Maps.<String, String>newHashMap(), Functions.<String>identity());
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Feb 19 20:34:55 GMT 2024
    - 1.4K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/collect/MultimapsTest.java

      public void testForMapSerialization() {
        Map<String, Integer> map = Maps.newHashMap();
        map.put("foo", 1);
        map.put("bar", 2);
        Multimap<String, Integer> multimapView = Multimaps.forMap(map);
        SerializableTester.reserializeAndAssert(multimapView);
      }
    
      public void testForMapRemoveAll() {
        Map<String, Integer> map = Maps.newHashMap();
        map.put("foo", 1);
        map.put("bar", 2);
        map.put("cow", 3);
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 42.2K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/collect/ImmutableSortedMapTest.java

      }
    
      public void testTailMapInclusive() {
        Map<String, Integer> map =
            ImmutableSortedMap.of("one", 1, "two", 2, "three", 3).tailMap("three", true);
        assertThat(map.entrySet())
            .containsExactly(Maps.immutableEntry("three", 3), Maps.immutableEntry("two", 2))
            .inOrder();
      }
    
      public void testTailMapExclusive() {
        Map<String, Integer> map =
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 27K bytes
    - Viewed (0)
Back to top