Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 368 for value (0.12 sec)

  1. android/guava/src/com/google/common/cache/LoadingCache.java

       * {@code key}, simply waits for that thread to finish and returns its loaded value. Note that
       * multiple threads can concurrently load values for distinct keys.
       *
       * <p>Caches loaded by a {@link CacheLoader} will call {@link CacheLoader#load} to load new values
       * into the cache. Newly loaded values are added to the cache using {@code
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Sat Aug 06 17:12:03 GMT 2022
    - 8.3K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/collect/TableCollectors.java

          return column;
        }
    
        @Override
        public V getValue() {
          return value;
        }
    
        void merge(V value, BinaryOperator<V> mergeFunction) {
          checkNotNull(value, "value");
          this.value = checkNotNull(mergeFunction.apply(this.value, value), "mergeFunction.apply");
        }
      }
    
      private static <R extends @Nullable Object, C extends @Nullable Object, V> void mergeTables(
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Sat Mar 09 00:21:17 GMT 2024
    - 7.7K bytes
    - Viewed (0)
  3. guava/src/com/google/common/cache/Cache.java

      /**
       * Associates {@code value} with {@code key} in this cache. If the cache previously contained a
       * value associated with {@code key}, the old value is replaced by {@code value}.
       *
       * <p>Prefer {@link #get(Object, Callable)} when using the conventional "if cached, return;
       * otherwise create, cache and return" pattern.
       *
       * @since 11.0
       */
      void put(K key, V value);
    
      /**
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Sun Aug 07 02:38:22 GMT 2022
    - 7.9K bytes
    - Viewed (1)
  4. android/guava/src/com/google/common/escape/ArrayBasedUnicodeEscaper.java

          // to ensure the first test of either value will fail.
          safeMax = -1;
          safeMin = Integer.MAX_VALUE;
        }
        this.safeMin = safeMin;
        this.safeMax = safeMax;
    
        // This is a bit of a hack but lets us do quicker per-character checks in
        // the fast path code. The safe min/max values are very unlikely to extend
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Oct 10 19:45:10 GMT 2022
    - 8.5K bytes
    - Viewed (0)
  5. guava/src/com/google/common/collect/JdkBackedImmutableMap.java

            K key = entry.getKey();
            if (duplicates.containsKey(key)) {
              V value = duplicates.get(key);
              if (value == null) {
                continue; // delete this duplicate
              }
              entry = new ImmutableMapEntry<>(key, value);
              duplicates.put(key, null);
            }
            newEntryArray[outI++] = entry;
          }
          entryArray = newEntryArray;
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Thu Nov 30 21:54:06 GMT 2023
    - 4.8K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/collect/TreeTraverserTest.java

    public class TreeTraverserTest extends TestCase {
      private static class Node {
        final char value;
    
        Node(char value) {
          this.value = value;
        }
      }
    
      private static final class Tree extends Node {
        final List<Tree> children;
    
        public Tree(char value, Tree... children) {
          super(value);
          this.children = Arrays.asList(children);
        }
      }
    
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Feb 19 20:34:55 GMT 2024
    - 3.6K bytes
    - Viewed (0)
  7. guava/src/com/google/common/collect/ImmutableEntry.java

      @ParametricNullness final K key;
      @ParametricNullness final V value;
    
      ImmutableEntry(@ParametricNullness K key, @ParametricNullness V value) {
        this.key = key;
        this.value = value;
      }
    
      @Override
      @ParametricNullness
      public final K getKey() {
        return key;
      }
    
      @Override
      @ParametricNullness
      public final V getValue() {
        return value;
      }
    
      @Override
      @ParametricNullness
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Thu Jan 19 21:29:44 GMT 2023
    - 1.7K bytes
    - Viewed (0)
  8. guava-testlib/src/com/google/common/collect/testing/testers/MapMergeTester.java

                    }));
        expectAdded(e3());
      }
    
      @MapFeature.Require({SUPPORTS_PUT, ALLOWS_NULL_VALUES})
      @CollectionSize.Require(absent = ZERO)
      public void testMappedToNull() {
        initMapWithNullValue();
        assertEquals(
            "Map.merge(keyMappedToNull, value, function) should return value",
            v3(),
            getMap()
                .merge(
                    getKeyForNullValue(),
                    v3(),
    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)
  9. 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)
  10. 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)
Back to top