Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 862 for Value (0.15 sec)

  1. android/guava/src/com/google/common/reflect/ImmutableTypeToInstanceMap.java

        /**
         * Associates {@code key} with {@code value} in the built map. Duplicate keys are not allowed,
         * and will cause {@link #build} to fail.
         */
        @CanIgnoreReturnValue
        public <T extends B> Builder<B> put(Class<T> key, T value) {
          mapBuilder.put(TypeToken.of(key), value);
          return this;
        }
    
        /**
         * Associates {@code key} with {@code value} in the built map. Duplicate keys are not allowed,
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Feb 01 20:46:24 GMT 2022
    - 5.6K bytes
    - Viewed (0)
  2. guava-testlib/src/com/google/common/collect/testing/testers/MapMergeTester.java

    public class MapMergeTester<K, V> extends AbstractMapTester<K, V> {
      @MapFeature.Require(SUPPORTS_PUT)
      public void testAbsent() {
        assertEquals(
            "Map.merge(absent, value, function) should return value",
            v3(),
            getMap()
                .merge(
                    k3(),
                    v3(),
                    (oldV, newV) -> {
                      throw new AssertionFailedError(
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Feb 21 16:49:06 GMT 2024
    - 6.5K bytes
    - Viewed (0)
  3. guava-testlib/src/com/google/common/testing/RelationshipTester.java

      }
    
      static final class Item<T> {
        final T value;
        final int groupNumber;
        final int itemNumber;
    
        Item(T value, int groupNumber, int itemNumber) {
          this.value = value;
          this.groupNumber = groupNumber;
          this.itemNumber = itemNumber;
        }
    
        @Override
        public String toString() {
          return value + " [group " + (groupNumber + 1) + ", item " + (itemNumber + 1) + ']';
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Tue Apr 25 11:57:12 GMT 2023
    - 5.9K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/collect/ImmutableMapFloodingTest.java

                Lists.transform(keys, k -> Maps.immutableEntry(k, "dummy value")));
          }
        },
        BUILDER_PUT_ONE_BY_ONE {
          @Override
          public Map<Object, Object> create(List<?> keys) {
            ImmutableMap.Builder<Object, Object> builder = ImmutableMap.builder();
            for (Object k : keys) {
              builder.put(k, "dummy value");
            }
            return builder.buildOrThrow();
          }
        },
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Tue Oct 03 21:01:39 GMT 2023
    - 3.4K bytes
    - Viewed (0)
  5. guava-testlib/src/com/google/common/collect/testing/MapInterfaceTest.java

        for (K key : keySet) {
          V value = map.get(key);
          expectedKeySetHash += key != null ? key.hashCode() : 0;
          assertTrue(map.containsKey(key));
          assertTrue(map.containsValue(value));
          assertTrue(valueCollection.contains(value));
          assertTrue(valueCollection.containsAll(Collections.singleton(value)));
          assertTrue(entrySet.contains(mapEntry(key, value)));
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Feb 21 16:49:06 GMT 2024
    - 45.9K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/collect/MapMakerInternalMapTest.java

        assertNull(segment.get(key, hash));
        assertFalse(segment.containsKey(key, hash));
        assertFalse(segment.containsValue(value));
    
        // count == 1
        segment.count++;
        assertSame(value, segment.get(key, hash));
        assertTrue(segment.containsKey(key, hash));
        assertTrue(segment.containsValue(value));
        // don't see absent values now that count > 0
        assertNull(segment.get(new Object(), hash));
    
        // null key
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Tue Feb 20 17:00:05 GMT 2024
    - 35.1K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/collect/MapMakerInternalMapTest.java

        assertNull(segment.get(key, hash));
        assertFalse(segment.containsKey(key, hash));
        assertFalse(segment.containsValue(value));
    
        // count == 1
        segment.count++;
        assertSame(value, segment.get(key, hash));
        assertTrue(segment.containsKey(key, hash));
        assertTrue(segment.containsValue(value));
        // don't see absent values now that count > 0
        assertNull(segment.get(new Object(), hash));
    
        // null key
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Feb 20 17:00:05 GMT 2024
    - 35.1K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/math/Quantiles.java

       * that all the values with indexes in the range [{@code from}, {@code required}) are less than or
       * equal to the value with index {@code required}, and all the values with indexes in the range
       * ({@code required}, {@code to}] are greater than or equal to that value. Therefore, the value at
       * {@code required} is the value which would appear at that index in the sorted dataset.
       */
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Fri May 12 17:02:53 GMT 2023
    - 29.9K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/collect/EnumBiMap.java

      }
    
      /** Returns the associated value type. */
      @GwtIncompatible
      public Class<V> valueType() {
        return valueTypeOrObjectUnderJ2cl;
      }
    
      @Override
      K checkKey(K key) {
        return checkNotNull(key);
      }
    
      @Override
      V checkValue(V value) {
        return checkNotNull(value);
      }
    
      /**
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Aug 24 01:40:03 GMT 2023
    - 6.3K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/graph/UndirectedGraphConnections.java

        return adjacentNodeValues.remove(node);
      }
    
      @Override
      public void addPredecessor(N node, V value) {
        @SuppressWarnings("unused")
        V unused = addSuccessor(node, value);
      }
    
      @Override
      @CheckForNull
      public V addSuccessor(N node, V value) {
        return adjacentNodeValues.put(node, value);
      }
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Oct 06 00:47:57 GMT 2021
    - 3.3K bytes
    - Viewed (0)
Back to top