Search Options

Results per page
Sort
Preferred Languages
Advance

Results 201 - 210 of 606 for KEYS (0.03 sec)

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

        map.put("foo", 2);
        map.put("bar", 3);
        map.put("bar", 4);
        assertEquals("[bar=1, foo=2, bar=3, bar=4]", map.entries().toString());
        assertThat(map.keys()).containsExactly("bar", "foo", "bar", "bar").inOrder();
        map.keys().remove("bar"); // bar is no longer the first key!
        assertEquals("{foo=[2], bar=[3, 4]}", map.toString());
      }
    
      public void testLinkedValues() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 18K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/collect/ImmutableBiMapTest.java

        ImmutableBiMap<String, Integer> bimap =
            ImmutableBiMap.copyOf(ImmutableMap.of("one", 1, "two", 2, "three", 3, "four", 4));
        Set<String> keys = bimap.keySet();
        assertEquals(newHashSet("one", "two", "three", "four"), keys);
        assertThat(keys).containsExactly("one", "two", "three", "four").inOrder();
      }
    
      public void testValues() {
        ImmutableBiMap<String, Integer> bimap =
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 22.3K bytes
    - Viewed (0)
  3. guava/src/com/google/common/graph/AbstractUndirectedNetworkConnections.java

     * @param <N> Node parameter type
     * @param <E> Edge parameter type
     */
    @ElementTypesAreNonnullByDefault
    abstract class AbstractUndirectedNetworkConnections<N, E> implements NetworkConnections<N, E> {
      /** Keys are edges incident to the origin node, values are the node at the other end. */
      final Map<E, N> incidentEdgeMap;
    
      AbstractUndirectedNetworkConnections(Map<E, N> incidentEdgeMap) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Apr 26 17:43:39 UTC 2021
    - 2.7K bytes
    - Viewed (0)
  4. guava/src/com/google/common/cache/LocalCache.java

       */
      @CheckForNull
      Map<K, V> loadAll(Set<? extends K> keys, CacheLoader<? super K, V> loader)
          throws ExecutionException {
        checkNotNull(loader);
        checkNotNull(keys);
        Stopwatch stopwatch = Stopwatch.createStarted();
        Map<K, V> result;
        boolean success = false;
        try {
          @SuppressWarnings("unchecked") // safe since all keys extend K
          Map<K, V> map = (Map<K, V>) loader.loadAll(keys);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 19:07:49 UTC 2024
    - 149.2K bytes
    - Viewed (0)
  5. android/guava-testlib/src/com/google/common/collect/testing/google/MultimapSizeTester.java

        resetContainer(mapEntry(k0(), v0()), mapEntry(k0(), v1()), mapEntry(k0(), v2()));
    
        assertEquals(3, multimap().size());
        assertEquals(3, multimap().entries().size());
        assertEquals(3, multimap().keys().size());
    
        assertEquals(1, multimap().keySet().size());
        assertEquals(1, multimap().asMap().size());
      }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Jul 24 20:12:35 UTC 2024
    - 3.7K bytes
    - Viewed (0)
  6. guava/src/com/google/common/collect/CompactHashing.java

      }
    
      static int remove(
          @CheckForNull Object key,
          @CheckForNull Object value,
          int mask,
          Object table,
          int[] entries,
          @Nullable Object[] keys,
          @CheckForNull @Nullable Object[] values) {
        int hash = Hashing.smearedHash(key);
        int tableIndex = hash & mask;
        int next = tableGet(table, tableIndex);
        if (next == UNSET) {
          return -1;
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 25 15:34:52 UTC 2024
    - 7.1K bytes
    - Viewed (0)
  7. src/main/java/org/codelibs/core/misc/DynamicProperties.java

        }
    
        @Override
        public boolean isEmpty() {
            return getProperties().isEmpty();
        }
    
        @Override
        public Enumeration<Object> keys() {
            return getProperties().keys();
        }
    
        @Override
        public Set<Object> keySet() {
            return getProperties().keySet();
        }
    
        @Override
        public void list(final PrintStream out) {
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 9.6K bytes
    - Viewed (0)
  8. cmd/encryption-v1.go

    				ETag, err := etag.Parse(batch[i].ETag)
    				if err != nil {
    					return err
    				}
    				if SSES3SinglePartObjects[i] {
    					ETag, err = etag.Decrypt(keys[0][:], ETag)
    					if err != nil {
    						return err
    					}
    					keys = keys[1:]
    				}
    				batch[i].ETag = ETag.Format().String()
    			}
    		}
    		objects = objects[N:]
    	}
    	return nil
    }
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sun Oct 13 13:06:08 UTC 2024
    - 37.2K bytes
    - Viewed (0)
  9. internal/kms/context.go

    type Context map[string]string
    
    // MarshalText returns a canonical text representation of
    // the Context.
    
    // MarshalText sorts the context keys and writes the sorted
    // key-value pairs as canonical JSON object. The sort order
    // is based on the un-escaped keys. It never returns an error.
    func (c Context) MarshalText() ([]byte, error) {
    	if len(c) == 0 {
    		return []byte{'{', '}'}, nil
    	}
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sun Jan 02 17:15:06 UTC 2022
    - 6K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/collect/AbstractTableReadTest.java

        table = create("foo", 1, 'a', "bar", 1, 'b', "foo", 3, 'c');
        assertEquals(ImmutableMap.of(1, 'a', 3, 'c'), table.row("foo"));
      }
    
      // This test assumes that the implementation does not support null keys.
      public void testRowNull() {
        table = create("foo", 1, 'a', "bar", 1, 'b', "foo", 3, 'c');
        assertThrows(NullPointerException.class, () -> table.row(null));
      }
    
      public void testColumn() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Oct 15 17:36:06 UTC 2024
    - 6.6K bytes
    - Viewed (0)
Back to top