Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 920 for maps (0.09 sec)

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

       * Constructs a new bimap containing initial values from {@code map}. The bimap is created with an
       * initial capacity sufficient to hold the mappings in the specified map.
       */
      public static <K extends @Nullable Object, V extends @Nullable Object> HashBiMap<K, V> create(
          Map<? extends K, ? extends V> map) {
        HashBiMap<K, V> bimap = create(map.size());
        bimap.putAll(map);
        return bimap;
      }
    
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue Dec 16 14:46:34 UTC 2025
    - 37.1K bytes
    - Viewed (0)
  2. src/test/java/org/codelibs/core/collection/MapsTest.java

    import static org.codelibs.core.collection.Maps.map;
    import static org.hamcrest.CoreMatchers.is;
    import static org.junit.Assert.assertThat;
    
    import java.util.Map;
    
    import org.junit.Test;
    
    /**
     * @author koichik
     */
    public class MapsTest {
    
        /**
         * @throws Exception
         */
        @Test
        public void test() throws Exception {
            final Map<String, Integer> map = map("a", 1).$("b", 2).$("c", 3).$();
    Registered: Sat Dec 20 08:55:33 UTC 2025
    - Last Modified: Sat May 10 01:32:17 UTC 2025
    - 1.2K bytes
    - Viewed (0)
  3. guava/src/com/google/common/collect/Platform.java

          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.
       */
      static <K extends @Nullable Object, V extends @Nullable Object>
          Map<K, V> newLinkedHashMapWithExpectedSize(int expectedSize) {
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 5.5K bytes
    - Viewed (0)
  4. 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 = new HashMap<>();
          for (Entry<AnEnum, String> entry : entries) {
            checkNotNull(entry);
            map.put(entry.getKey(), entry.getValue());
          }
          return Maps.immutableEnumMap(map);
        }
      }
    
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Sun Aug 10 19:54:19 UTC 2025
    - 8.6K bytes
    - Viewed (0)
  5. guava/src/com/google/common/collect/Table.java

       *
       * @return a map view from each row key to a secondary map from column keys to values
       */
      Map<R, Map<C, V>> rowMap();
    
      /**
       * Returns a view that associates each column key with the corresponding map from row keys to
       * values. Changes to the returned map will update this table. The returned map does not support
       * {@code put()} or {@code putAll()}, or {@code setValue()} on its entries.
       *
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue Jul 08 18:32:10 UTC 2025
    - 10.5K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/collect/ForwardingNavigableMap.java

    import static com.google.common.collect.Maps.keyOrNull;
    
    import com.google.common.annotations.GwtIncompatible;
    import java.util.Iterator;
    import java.util.NavigableMap;
    import java.util.NavigableSet;
    import java.util.NoSuchElementException;
    import java.util.SortedMap;
    import org.jspecify.annotations.Nullable;
    
    /**
     * A navigable map which forwards all its method calls to another navigable map. Subclasses should
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Sun Dec 22 03:38:46 UTC 2024
    - 14.1K bytes
    - Viewed (0)
  7. guava/src/com/google/common/collect/ForwardingNavigableMap.java

    import static com.google.common.collect.Maps.keyOrNull;
    
    import com.google.common.annotations.GwtIncompatible;
    import java.util.Iterator;
    import java.util.NavigableMap;
    import java.util.NavigableSet;
    import java.util.NoSuchElementException;
    import java.util.SortedMap;
    import java.util.function.BiFunction;
    import org.jspecify.annotations.Nullable;
    
    /**
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Sun Dec 22 03:38:46 UTC 2024
    - 14.3K bytes
    - Viewed (0)
  8. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/Tags.kt

          }
    
        // Return a new `Tags` that maps `key` to `value`.
        return when {
          value != null -> LinkedTags(key, value, thisMinusKey)
          else -> thisMinusKey
        }
      }
    
      override fun <T : Any> get(key: KClass<T>): T? =
        when {
          key == this.key -> key.java.cast(value)
          else -> next[key]
        }
    
      /** Returns a [toString] consistent with [Map], with elements in insertion order. */
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Fri Oct 24 11:37:46 UTC 2025
    - 3.9K bytes
    - Viewed (0)
  9. guava/src/com/google/common/collect/SparseImmutableTable.java

          ImmutableList<Cell<R, C, V>> cellList,
          ImmutableSet<R> rowSpace,
          ImmutableSet<C> columnSpace) {
        Map<R, Integer> rowIndex = Maps.indexMap(rowSpace);
        Map<R, Map<C, V>> rows = new LinkedHashMap<>();
        for (R row : rowSpace) {
          rows.put(row, new LinkedHashMap<C, V>());
        }
        Map<C, Map<R, V>> columns = new LinkedHashMap<>();
        for (C col : columnSpace) {
          columns.put(col, new LinkedHashMap<R, V>());
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Mon Sep 22 21:07:18 UTC 2025
    - 5.3K bytes
    - Viewed (0)
  10. guava/src/com/google/common/collect/AbstractBiMap.java

        return value;
      }
    
      /**
       * Specifies the delegate maps going in each direction. Called by subclasses during
       * deserialization.
       */
      void setDelegates(Map<K, V> forward, Map<V, K> backward) {
        inverse = checkMapsAndMakeInverse(forward, backward);
        delegate = forward;
      }
    
      private AbstractBiMap<V, K> checkMapsAndMakeInverse(Map<K, V> forward, Map<V, K> backward) {
        checkArgument(forward.isEmpty());
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Mon Sep 22 15:50:50 UTC 2025
    - 14.3K bytes
    - Viewed (0)
Back to top