Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 45 for maps (0.32 sec)

  1. guava-tests/test/com/google/common/collect/MapsTest.java

        TreeMap<Integer, Integer> map = Maps.newTreeMap(SOME_COMPARATOR);
        assertEquals(Collections.emptyMap(), map);
        assertSame(SOME_COMPARATOR, map.comparator());
      }
    
      public void testTreeMapWithInitialMap() {
        SortedMap<Integer, Integer> map = Maps.newTreeMap();
        map.put(5, 10);
        map.put(3, 20);
        map.put(1, 30);
        TreeMap<Integer, Integer> copy = Maps.newTreeMap(map);
        assertEquals(copy, map);
    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)
  2. android/guava-tests/test/com/google/common/collect/MapsTest.java

        TreeMap<Integer, Integer> map = Maps.newTreeMap(SOME_COMPARATOR);
        assertEquals(Collections.emptyMap(), map);
        assertSame(SOME_COMPARATOR, map.comparator());
      }
    
      public void testTreeMapWithInitialMap() {
        SortedMap<Integer, Integer> map = Maps.newTreeMap();
        map.put(5, 10);
        map.put(3, 20);
        map.put(1, 30);
        TreeMap<Integer, Integer> copy = Maps.newTreeMap(map);
        assertEquals(copy, map);
    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)
  3. android/guava/src/com/google/common/collect/Multimaps.java

        final Map<K, V> map;
    
        MapMultimap(Map<K, V> map) {
          this.map = checkNotNull(map);
        }
    
        @Override
        public int size() {
          return map.size();
        }
    
        @Override
        public boolean containsKey(@CheckForNull Object key) {
          return map.containsKey(key);
        }
    
        @Override
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 86.4K bytes
    - Viewed (0)
  4. cmd/object-api-listobjects_test.go

    		}
    	}
    
    	var err error
    	testObjects := []struct {
    		parentBucket string
    		name         string
    		content      string
    		meta         map[string]string
    	}{
    		{testBuckets[0], "Asia-maps.png", "asis-maps", map[string]string{"content-type": "image/png"}},
    		{testBuckets[0], "Asia/India/India-summer-photos-1", "contentstring", nil},
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed May 01 11:07:40 GMT 2024
    - 73.1K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/collect/ImmutableSortedMap.java

       *         .buildOrThrow();
       * }</pre>
       *
       * <p>For <i>small</i> immutable sorted maps, the {@code ImmutableSortedMap.of()} methods are even
       * more convenient.
       *
       * <p>Builder instances can be reused - it is safe to call {@link #buildOrThrow} multiple times to
       * build multiple maps in series. Each map is a superset of the maps created before it.
       *
       * @since 2.0
       */
    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)
  6. guava/src/com/google/common/collect/ImmutableSortedMap.java

       *         .buildOrThrow();
       * }</pre>
       *
       * <p>For <i>small</i> immutable sorted maps, the {@code ImmutableSortedMap.of()} methods are even
       * more convenient.
       *
       * <p>Builder instances can be reused - it is safe to call {@link #buildOrThrow} multiple times to
       * build multiple maps in series. Each map is a superset of the maps created before it.
       *
       * @since 2.0
       */
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Thu Feb 22 21:19:52 GMT 2024
    - 50.3K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/collect/Sets.java

       * in the following code fragment:
       *
       * <pre>{@code
       * Set<Object> identityHashSet = Sets.newSetFromMap(
       *     new IdentityHashMap<Object, Boolean>());
       * }</pre>
       *
       * <p>The returned set is serializable if the backing map is.
       *
       * @param map the backing map
       * @return the set backed by the map
       * @throws IllegalArgumentException if {@code map} is not empty
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 77.4K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/cache/CacheLoadingTest.java

        final LoadingCache<String, String> cache = CacheBuilder.newBuilder().build(computeFunction);
        ConcurrentMap<String, String> map = cache.asMap();
        map.put(refreshKey, refreshKey);
        assertEquals(1, map.size());
        assertFalse(map.containsKey(getKey));
        assertSame(refreshKey, map.get(refreshKey));
    
        new Thread() {
          @Override
          public void run() {
            cache.getUnchecked(getKey);
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 86.2K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/cache/CacheLoadingTest.java

        final LoadingCache<String, String> cache = CacheBuilder.newBuilder().build(computeFunction);
        ConcurrentMap<String, String> map = cache.asMap();
        map.put(refreshKey, refreshKey);
        assertEquals(1, map.size());
        assertFalse(map.containsKey(getKey));
        assertSame(refreshKey, map.get(refreshKey));
    
        new Thread() {
          @Override
          public void run() {
            cache.getUnchecked(getKey);
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 86.2K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/collect/Synchronized.java

        }
    
        @Override
        public Map<R, Map<C, V>> rowMap() {
          synchronized (mutex) {
            return map(
                Maps.transformValues(
                    delegate().rowMap(),
                    new com.google.common.base.Function<Map<C, V>, Map<C, V>>() {
                      @Override
                      public Map<C, V> apply(Map<C, V> t) {
                        return map(t, mutex);
                      }
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 53.4K bytes
    - Viewed (0)
Back to top