Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 897 for map1 (0.95 sec)

  1. pkg/kube/krt/static.go

    // limitations under the License.
    
    package krt
    
    import (
    	"istio.io/istio/pkg/kube/controllers"
    	"istio.io/istio/pkg/maps"
    	"istio.io/istio/pkg/slices"
    )
    
    type staticList[T any] struct {
    	vals map[Key[T]]T
    	id   collectionUID
    }
    
    func NewStaticCollection[T any](vals []T) Collection[T] {
    	res := map[Key[T]]T{}
    	for _, v := range vals {
    		res[GetKey(v)] = v
    	}
    	return &staticList[T]{
    		vals: res,
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri May 10 23:33:56 UTC 2024
    - 2.1K bytes
    - Viewed (0)
  2. guava-testlib/src/com/google/common/collect/testing/google/BiMapGenerators.java

    import com.google.common.annotations.GwtCompatible;
    import com.google.common.collect.BiMap;
    import com.google.common.collect.ImmutableBiMap;
    import com.google.common.collect.Maps;
    import java.util.Arrays;
    import java.util.Map;
    import java.util.Map.Entry;
    
    /**
     * Generators of various {@link com.google.common.collect.BiMap}s and derived collections.
     *
     * @author Jared Levy
     * @author Hayward Chan
     */
    @GwtCompatible
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Feb 21 16:49:06 UTC 2024
    - 2.2K bytes
    - Viewed (0)
  3. subprojects/core/src/main/java/org/gradle/process/internal/DefaultProcessForkOptions.java

        }
    
        public static Map<String, String> getActualEnvironment(ProcessForkOptions forkOptions) {
            Map<String, String> actual = new HashMap<>();
            for (Map.Entry<String, Object> entry : forkOptions.getEnvironment().entrySet()) {
                actual.put(entry.getKey(), String.valueOf(entry.getValue()));
            }
            return actual;
        }
    
        @Override
        public void setEnvironment(Map<String, ?> environmentVariables) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Oct 05 19:36:14 UTC 2023
    - 3.6K bytes
    - Viewed (0)
  4. guava/src/com/google/common/collect/JdkBackedImmutableBiMap.java

    @ElementTypesAreNonnullByDefault
    final class JdkBackedImmutableBiMap<K, V> extends ImmutableBiMap<K, V> {
      static <K, V> ImmutableBiMap<K, V> create(int n, @Nullable Entry<K, V>[] entryArray) {
        Map<K, V> forwardDelegate = Maps.newHashMapWithExpectedSize(n);
        Map<V, K> backwardDelegate = Maps.newHashMapWithExpectedSize(n);
        for (int i = 0; i < n; i++) {
          // requireNonNull is safe because the first `n` elements have been filled in.
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue May 28 18:11:09 UTC 2024
    - 4.6K bytes
    - Viewed (0)
  5. guava/src/com/google/common/collect/Platform.java

      /** Returns the platform preferred implementation of a map based on a hash table. */
      static <K extends @Nullable Object, V extends @Nullable Object>
          Map<K, V> newHashMapWithExpectedSize(int expectedSize) {
        return Maps.newHashMapWithExpectedSize(expectedSize);
      }
    
      /**
       * Returns the platform preferred implementation of an insertion ordered map based on a hash
       * table.
       */
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Feb 22 21:19:52 UTC 2024
    - 5.1K bytes
    - Viewed (0)
  6. android/guava-testlib/src/com/google/common/collect/testing/google/MapGenerators.java

        @Override
        protected Map<AnEnum, String> create(Entry<AnEnum, String>[] entries) {
          Map<AnEnum, String> map = Maps.newHashMap();
          for (Entry<AnEnum, String> entry : entries) {
            // checkArgument(!map.containsKey(entry.getKey()));
            map.put(entry.getKey(), entry.getValue());
          }
          return Maps.immutableEnumMap(map);
        }
      }
    
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Feb 26 19:46:10 UTC 2024
    - 8.4K bytes
    - Viewed (0)
  7. platforms/core-configuration/input-tracking/src/main/java/org/gradle/internal/configuration/inputs/AccessTrackingUtils.java

            if (key instanceof String && value instanceof String) {
                return Maps.immutableEntry((String) key, (String) value);
            }
            return null;
        }
    
        @Nullable
        public static Map.Entry<?, ?> tryConvertingToEntry(@Nullable Object o) {
            if (!(o instanceof Map.Entry)) {
                return null;
            }
            return (Map.Entry<?, ?>) o;
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Nov 11 00:37:04 UTC 2023
    - 2.7K bytes
    - Viewed (0)
  8. api/go1.23.txt

    pkg iter, type Seq[$0 interface{}] func(func($0) bool) #61897
    pkg maps, func All[$0 interface{ ~map[$1]$2 }, $1 comparable, $2 interface{}]($0) iter.Seq2[$1, $2] #61900
    pkg maps, func Collect[$0 comparable, $1 interface{}](iter.Seq2[$0, $1]) map[$0]$1 #61900
    pkg maps, func Insert[$0 interface{ ~map[$1]$2 }, $1 comparable, $2 interface{}]($0, iter.Seq2[$1, $2]) #61900
    pkg maps, func Keys[$0 interface{ ~map[$1]$2 }, $1 comparable, $2 interface{}]($0) iter.Seq[$1] #61900
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jun 05 20:48:49 UTC 2024
    - 8.4K bytes
    - Viewed (0)
  9. src/test/java/org/codelibs/fess/util/MemoryUtilTest.java

            assertEquals(132L, MemoryUtil.sizeOf(Lists.asList("1234567890", new String[] { "1234567890" })));
            assertEquals(132L, MemoryUtil.sizeOf(Maps.map("1234567890", "1234567890").$()));
        }
    
        private long getObjectSize(Object value) {
            System.setProperty("java.vm.name", "Java HotSpot(TM) ");
            return ObjectSizeCalculator.getObjectSize(value);
        }
    Registered: Wed Jun 12 13:08:18 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 4.1K bytes
    - Viewed (0)
  10. guava/src/com/google/common/collect/HashMultiset.java

        Iterables.addAll(multiset, elements);
        return multiset;
      }
    
      private HashMultiset() {
        super(new HashMap<E, Count>());
      }
    
      private HashMultiset(int distinctElements) {
        super(Maps.<E, Count>newHashMapWithExpectedSize(distinctElements));
      }
    
      /**
       * @serialData the number of distinct elements, the first element, its count, the second element,
       *     its count, and so on
       */
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Apr 01 16:15:01 UTC 2024
    - 3.4K bytes
    - Viewed (0)
Back to top