Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 409 for Maps (0.18 sec)

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

        }
    
        @Override
        Set<K> createKeySet() {
          @WeakOuter
          class KeySetImpl extends Maps.KeySet<K, Collection<V>> {
            KeySetImpl() {
              super(AsMap.this);
            }
    
            @Override
            public boolean removeAll(Collection<?> c) {
              return removeEntriesIf(Maps.<K>keyPredicateOnEntries(in(c)));
            }
    
            @Override
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Apr 24 19:38:27 GMT 2024
    - 11.9K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/collect/MapsTest.java

        assertEquals(ImmutableSortedMap.of(2, 0), Maps.subMap(map, Range.open(0, 4)));
        assertEquals(ImmutableSortedMap.of(4, 0), Maps.subMap(map, Range.open(2, 6)));
        assertEquals(ImmutableSortedMap.of(4, 0, 6, 0), Maps.subMap(map, Range.open(3, 7)));
        assertEquals(empty, Maps.subMap(map, Range.open(20, 30)));
    
        assertEquals(map, Maps.subMap(map, Range.openClosed(0, 12)));
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Mar 04 16:06:01 GMT 2024
    - 67.2K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/collect/MapsTest.java

        assertEquals(ImmutableSortedMap.of(2, 0), Maps.subMap(map, Range.open(0, 4)));
        assertEquals(ImmutableSortedMap.of(4, 0), Maps.subMap(map, Range.open(2, 6)));
        assertEquals(ImmutableSortedMap.of(4, 0, 6, 0), Maps.subMap(map, Range.open(3, 7)));
        assertEquals(empty, Maps.subMap(map, Range.open(20, 30)));
    
        assertEquals(map, Maps.subMap(map, Range.openClosed(0, 12)));
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Mar 04 16:06:01 GMT 2024
    - 64.3K bytes
    - Viewed (0)
  4. 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)
  5. android/guava-tests/test/com/google/common/collect/MapsTransformValuesTest.java

    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 May 03 12:43:13 GMT 2024
    - Last Modified: Mon Feb 19 20:34:55 GMT 2024
    - 1.4K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/collect/MapsTransformValuesUnmodifiableIteratorTest.java

        assertTrue(entries.contains(Maps.immutableEntry("a", true)));
        assertTrue(entries.contains(Maps.<String, @Nullable Boolean>immutableEntry("b", null)));
        assertTrue(
            entries.contains(Maps.<@Nullable String, @Nullable Boolean>immutableEntry(null, null)));
    
        assertFalse(entries.contains(Maps.<String, @Nullable Boolean>immutableEntry("c", null)));
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 12.2K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/collect/HashBiMapTest.java

            .containsExactly(Maps.immutableEntry("bar", 2), Maps.immutableEntry("quux", 1))
            .inOrder();
      }
    
      public void testInverseInsertionOrderAfterInverse() {
        BiMap<String, Integer> map = HashBiMap.create();
        map.put("bar", 2);
        map.put("quux", 1);
    
        assertThat(map.inverse().entrySet())
            .containsExactly(Maps.immutableEntry(2, "bar"), Maps.immutableEntry(1, "quux"))
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Feb 19 20:34:55 GMT 2024
    - 8.4K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/collect/HashBiMapTest.java

            .containsExactly(Maps.immutableEntry("bar", 2), Maps.immutableEntry("quux", 1))
            .inOrder();
      }
    
      public void testInverseInsertionOrderAfterInverse() {
        BiMap<String, Integer> map = HashBiMap.create();
        map.put("bar", 2);
        map.put("quux", 1);
    
        assertThat(map.inverse().entrySet())
            .containsExactly(Maps.immutableEntry(2, "bar"), Maps.immutableEntry(1, "quux"))
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Feb 19 20:34:55 GMT 2024
    - 8.4K bytes
    - Viewed (0)
  9. guava/src/com/google/common/collect/AbstractNavigableMap.java

      @CheckForNull
      public K lowerKey(@ParametricNullness K key) {
        return Maps.keyOrNull(lowerEntry(key));
      }
    
      @Override
      @CheckForNull
      public K floorKey(@ParametricNullness K key) {
        return Maps.keyOrNull(floorEntry(key));
      }
    
      @Override
      @CheckForNull
      public K ceilingKey(@ParametricNullness K key) {
        return Maps.keyOrNull(ceilingEntry(key));
      }
    
      @Override
      @CheckForNull
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Thu Jun 15 18:11:44 GMT 2023
    - 4.5K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/collect/AbstractTable.java

        Map<C, V> row = Maps.safeGet(rowMap(), rowKey);
        return row != null && Maps.safeContainsKey(row, columnKey);
      }
    
      @Override
      @CheckForNull
      public V get(@CheckForNull Object rowKey, @CheckForNull Object columnKey) {
        Map<C, V> row = Maps.safeGet(rowMap(), rowKey);
        return (row == null) ? null : Maps.safeGet(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)
Back to top