Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 281 - 290 of 680 for maps (0.02 seconds)

  1. cmd/batch-handlers.go

    // along with this program.  If not, see <http://www.gnu.org/licenses/>.
    
    package cmd
    
    import (
    	"bytes"
    	"context"
    	"encoding/binary"
    	"encoding/json"
    	"errors"
    	"fmt"
    	"io"
    	"maps"
    	"math/rand"
    	"net/http"
    	"net/url"
    	"path/filepath"
    	"runtime"
    	"strconv"
    	"strings"
    	"sync"
    	"time"
    
    	"github.com/dustin/go-humanize"
    	"github.com/lithammer/shortuuid/v4"
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Fri Aug 29 02:39:48 GMT 2025
    - 63.5K bytes
    - Click Count (1)
  2. guava/src/com/google/common/collect/JdkBackedImmutableMultiset.java

    import java.util.Collection;
    import java.util.Map;
    import org.jspecify.annotations.Nullable;
    
    /**
     * An implementation of ImmutableMultiset backed by a JDK Map and a list of entries. Used to protect
     * against hash flooding attacks.
     *
     * @author Louis Wasserman
     */
    @GwtCompatible
    final class JdkBackedImmutableMultiset<E> extends ImmutableMultiset<E> {
      private final Map<E, Integer> delegateMap;
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Sep 23 17:50:58 GMT 2025
    - 3.2K bytes
    - Click Count (0)
  3. android/guava-tests/test/com/google/common/cache/LocalLoadingCacheTest.java

        assertThat(map.replace(one, three)).isSameInstanceAs(two);
        assertThat(map.get(one)).isSameInstanceAs(three);
        assertThat(map.replace(one, two, three)).isFalse();
        assertThat(map.get(one)).isSameInstanceAs(three);
        assertThat(map.replace(one, three, two)).isTrue();
        assertThat(map.get(one)).isSameInstanceAs(two);
        assertThat(map).hasSize(3);
    
        map.clear();
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Mar 18 18:06:14 GMT 2026
    - 13.1K bytes
    - Click Count (0)
  4. guava-tests/test/com/google/common/cache/LocalLoadingCacheTest.java

        assertThat(map.replace(one, three)).isSameInstanceAs(two);
        assertThat(map.get(one)).isSameInstanceAs(three);
        assertThat(map.replace(one, two, three)).isFalse();
        assertThat(map.get(one)).isSameInstanceAs(three);
        assertThat(map.replace(one, three, two)).isTrue();
        assertThat(map.get(one)).isSameInstanceAs(two);
        assertThat(map).hasSize(3);
    
        map.clear();
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Mar 18 18:06:14 GMT 2026
    - 13.1K bytes
    - Click Count (0)
  5. android/guava-tests/test/com/google/common/collect/ClassToInstanceMapTesting.java

     */
    
    package com.google.common.collect;
    
    import static com.google.common.collect.Maps.immutableEntry;
    
    import com.google.common.collect.testing.SampleElements;
    import com.google.common.collect.testing.TestMapGenerator;
    import java.io.Serializable;
    import java.util.List;
    import java.util.Map.Entry;
    import org.jspecify.annotations.NullUnmarked;
    import org.jspecify.annotations.Nullable;
    
    /**
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Mar 31 20:00:15 GMT 2026
    - 2.7K bytes
    - Click Count (0)
  6. android/guava/src/com/google/common/graph/AbstractNetwork.java

    import com.google.common.collect.ImmutableSet;
    import com.google.common.collect.Iterators;
    import com.google.common.collect.Maps;
    import com.google.common.collect.Sets;
    import com.google.common.math.IntMath;
    import java.util.AbstractSet;
    import java.util.Iterator;
    import java.util.Map;
    import java.util.Set;
    import org.jspecify.annotations.Nullable;
    
    /**
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Mar 11 01:10:31 GMT 2026
    - 10K bytes
    - Click Count (0)
  7. guava/src/com/google/common/collect/JdkBackedImmutableMap.java

        Map<K, V> delegateMap = Maps.newHashMapWithExpectedSize(n);
        // If duplicates are allowed, this map will track the last value for each duplicated key.
        // A second pass will retain only the first entry for that key, but with this last value. The
        // value will then be replaced by null, signaling that later entries with the same key should
        // be deleted.
        Map<K, @Nullable V> duplicates = null;
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Sep 23 17:50:58 GMT 2025
    - 4.7K bytes
    - Click Count (0)
  8. android/guava/src/com/google/common/collect/ImmutableEnumMap.java

      static <K extends Enum<K>, V> ImmutableMap<K, V> asImmutable(EnumMap<K, V> map) {
        switch (map.size()) {
          case 0:
            return ImmutableMap.of();
          case 1:
            Entry<K, V> entry = getOnlyElement(map.entrySet());
            return ImmutableMap.of(entry.getKey(), entry.getValue());
          default:
            return new ImmutableEnumMap<>(map);
        }
      }
    
      private final transient EnumMap<K, V> delegate;
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Aug 07 16:05:33 GMT 2025
    - 3.7K bytes
    - Click Count (0)
  9. guava-tests/test/com/google/common/collect/ImmutableSortedMapTest.java

        IntHolder holderB = new IntHolder(2);
        Map<String, IntHolder> map = ImmutableSortedMap.of("a", holderA, "b", holderB);
        holderA.value = 3;
        assertTrue(map.entrySet().contains(immutableEntry("a", new IntHolder(3))));
        Map<String, Integer> intMap = ImmutableSortedMap.of("a", 3, "b", 2);
        assertEquals(intMap.hashCode(), map.entrySet().hashCode());
        assertEquals(intMap.hashCode(), map.hashCode());
      }
    
      @J2ktIncompatible
    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)
  10. guava/src/com/google/common/base/Functions.java

          Map<K, ? extends V> map, @ParametricNullness V defaultValue) {
        return new ForMapWithDefault<>(map, defaultValue);
      }
    
      private static final class FunctionForMapNoDefault<
              K extends @Nullable Object, V extends @Nullable Object>
          implements Function<K, V>, Serializable {
        final Map<K, V> map;
    
        FunctionForMapNoDefault(Map<K, V> map) {
          this.map = checkNotNull(map);
        }
    
        @Override
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Aug 06 17:32:30 GMT 2025
    - 15.4K bytes
    - Click Count (0)
Back to Top