Search Options

Results per page
Sort
Preferred Languages
Advance

Results 131 - 140 of 920 for maps (0.01 sec)

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

        Map<Integer, String> map = CompactLinkedHashMap.create();
        map.put(1, "a");
        map.put(4, "b");
        map.put(3, "d");
        map.put(2, "c");
        map.remove(4);
        testHasMapEntriesInOrder(map, 1, "a", 3, "d", 2, "c");
      }
    
      public void testInsertionOrderAfterRemoveLastEntry() {
        Map<Integer, String> map = CompactLinkedHashMap.create();
        map.put(1, "a");
        map.put(4, "b");
        map.put(3, "d");
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue Oct 28 18:44:53 UTC 2025
    - 6.7K bytes
    - Viewed (0)
  2. guava/src/com/google/common/util/concurrent/CycleDetectingLockFactory.java

        @SuppressWarnings("unchecked")
        Map<E, LockGraphNode> lockGraphNodes = (Map<E, LockGraphNode>) getOrCreateNodes(enumClass);
        return new WithExplicitOrdering<>(policy, lockGraphNodes);
      }
    
      @SuppressWarnings("unchecked")
      private static <E extends Enum<E>> Map<? extends E, LockGraphNode> getOrCreateNodes(
          Class<E> clazz) {
        Map<E, LockGraphNode> existing = (Map<E, LockGraphNode>) lockGraphNodesPerType.get(clazz);
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Thu Sep 11 17:06:34 UTC 2025
    - 35.9K bytes
    - Viewed (0)
  3. guava/src/com/google/common/graph/GraphConstants.java

      static final int DEFAULT_NODE_COUNT = 10;
      static final int DEFAULT_EDGE_COUNT = DEFAULT_NODE_COUNT * EXPECTED_DEGREE;
    
      // Load factor and capacity for "inner" (i.e. per node/edge element) hash sets or maps
      static final float INNER_LOAD_FACTOR = 1.0f;
      static final int INNER_CAPACITY = 2; // ceiling(EXPECTED_DEGREE / INNER_LOAD_FACTOR)
    
      // Error messages
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Sat Jan 18 02:54:30 UTC 2025
    - 3.1K bytes
    - Viewed (0)
  4. android/guava-testlib/test/com/google/common/collect/testing/MapTestSuiteBuilderTests.java

        @Override
        protected final Map<String, String> create(Entry<String, String>[] entries) {
          HashMap<String, String> map = new HashMap<>();
          for (Entry<String, String> entry : entries) {
            map.put(entry.getKey(), entry.getValue());
          }
          return wrap(map);
        }
    
        abstract Map<String, String> wrap(HashMap<String, String> map);
      }
    
      private static TestSuite wrappedHashMapTests(
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Thu May 22 16:18:11 UTC 2025
    - 11.4K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/collect/ImmutableBiMapFloodingTest.java

    import static com.google.common.collect.Maps.immutableEntry;
    import static java.lang.Math.log;
    
    import com.google.common.annotations.GwtIncompatible;
    import com.google.errorprone.annotations.CanIgnoreReturnValue;
    import java.util.EnumSet;
    import java.util.LinkedHashMap;
    import java.util.List;
    import java.util.Map;
    import java.util.Map.Entry;
    import java.util.stream.Stream;
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Mon Jul 28 19:11:14 UTC 2025
    - 4.5K bytes
    - Viewed (0)
  6. guava/src/com/google/common/collect/StandardRowSortedTable.java

       * RowSortedTable subinterface with the revised methods?
       */
    
      StandardRowSortedTable(
          SortedMap<R, Map<C, V>> backingMap, Supplier<? extends Map<C, V>> factory) {
        super(backingMap, factory);
      }
    
      private SortedMap<R, Map<C, V>> sortedBackingMap() {
        return (SortedMap<R, Map<C, V>>) backingMap;
      }
    
      /**
       * {@inheritDoc}
       *
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Fri Jul 18 15:05:43 UTC 2025
    - 4.4K bytes
    - Viewed (0)
  7. src/test/java/jcifs/smb/WinErrorTest.java

                    "WINERR_MESSAGES content differs");
        }
    
        @ParameterizedTest(name = "Known code {0} maps to message")
        @MethodSource("knownCodeMessagePairs")
        void lookup_returns_expected_message_for_known_codes(int code, String expectedMessage) {
            // Valid inputs: each known code must map to its documented message
            assertEquals(expectedMessage, lookupMessage(code).orElse(null));
        }
    
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 8.4K bytes
    - Viewed (0)
  8. guava/src/com/google/common/collect/CompactHashMap.java

      @VisibleForTesting
      @Nullable Map<K, V> delegateOrNull() {
        if (table instanceof Map) {
          return (Map<K, V>) table;
        }
        return null;
      }
    
      Map<K, V> createHashFloodingResistantDelegate(int tableSize) {
        return new LinkedHashMap<>(tableSize, 1.0f);
      }
    
      @CanIgnoreReturnValue
      Map<K, V> convertToHashFloodingResistantImplementation() {
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue Jul 08 18:32:10 UTC 2025
    - 39.6K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/collect/ForwardingNavigableMapTest.java

                });
      }
    
      public void testEquals() {
        NavigableMap<Integer, String> map1 = ImmutableSortedMap.of(1, "one");
        NavigableMap<Integer, String> map2 = ImmutableSortedMap.of(2, "two");
        new EqualsTester()
            .addEqualityGroup(map1, wrap(map1), wrap(map1))
            .addEqualityGroup(map2, wrap(map2))
            .testEquals();
      }
    
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue Dec 16 03:23:31 UTC 2025
    - 9.7K bytes
    - Viewed (0)
  10. android/guava-testlib/src/com/google/common/testing/FreshValueGenerator.java

        LinkedHashMap<K, V> map = new LinkedHashMap<>();
        map.put(key, value);
        return map;
      }
    
      @Generates
      static <K, V> ImmutableMap<K, V> generateImmutableMap(K key, V value) {
        return ImmutableMap.of(key, value);
      }
    
      @Empty
      static <K, V> ConcurrentMap<K, V> generateConcurrentMap() {
        return Maps.newConcurrentMap();
      }
    
      @Generates
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue May 13 17:27:14 UTC 2025
    - 28.1K bytes
    - Viewed (0)
Back to top