Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 25 for values (0.17 sec)

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

         * comparator (which might be the keys' natural order), are not allowed, and will cause {@link
         * #build} to fail.
         */
        @CanIgnoreReturnValue
        @Override
        public Builder<K, V> put(K key, V value) {
          ensureCapacity(size + 1);
          checkEntryNotNull(key, value);
          keys[size] = key;
          values[size] = value;
          size++;
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 53.2K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/collect/Synchronized.java

          synchronized (mutex) {
            return delegate().size();
          }
        }
    
        @Override
        public Collection<V> values() {
          synchronized (mutex) {
            if (values == null) {
              values = collection(delegate().values(), mutex);
            }
            return values;
          }
        }
    
        @Override
        public boolean equals(@CheckForNull Object o) {
          if (o == this) {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 53.4K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/collect/SetsTest.java

      }
    
      public void testNewIdentityHashSet() {
        Set<Integer> set = Sets.newIdentityHashSet();
        Integer value1 = new Integer(12357);
        Integer value2 = new Integer(12357);
        assertTrue(set.add(value1));
        assertFalse(set.contains(value2));
        assertTrue(set.contains(value1));
        assertTrue(set.add(value2));
        assertEquals(2, set.size());
      }
    
      @J2ktIncompatible
      @GwtIncompatible // CopyOnWriteArraySet
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 49.3K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/collect/MapsTest.java

      }
    
      public void testCapacityForLargeSizes() {
        int[] largeExpectedSizes =
            new int[] {
              Integer.MAX_VALUE / 2 - 1,
              Integer.MAX_VALUE / 2,
              Integer.MAX_VALUE / 2 + 1,
              Integer.MAX_VALUE - 1,
              Integer.MAX_VALUE
            };
        for (int expectedSize : largeExpectedSizes) {
          int capacity = Maps.capacity(expectedSize);
          assertTrue(
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Mar 04 16:06:01 GMT 2024
    - 67.2K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/collect/MapsTest.java

      }
    
      public void testCapacityForLargeSizes() {
        int[] largeExpectedSizes =
            new int[] {
              Integer.MAX_VALUE / 2 - 1,
              Integer.MAX_VALUE / 2,
              Integer.MAX_VALUE / 2 + 1,
              Integer.MAX_VALUE - 1,
              Integer.MAX_VALUE
            };
        for (int expectedSize : largeExpectedSizes) {
          int capacity = Maps.capacity(expectedSize);
          assertTrue(
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Mar 04 16:06:01 GMT 2024
    - 64.3K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/collect/MapMakerInternalMap.java

        Set<K> ks = keySet;
        return (ks != null) ? ks : (keySet = new KeySet());
      }
    
      @LazyInit @CheckForNull transient Collection<V> values;
    
      @Override
      public Collection<V> values() {
        Collection<V> vs = values;
        return (vs != null) ? vs : (values = new Values());
      }
    
      @LazyInit @CheckForNull transient Set<Entry<K, V>> entrySet;
    
      @Override
      public Set<Entry<K, V>> entrySet() {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 91.9K bytes
    - Viewed (0)
  7. guava/src/com/google/common/collect/ImmutableSortedMap.java

                Entry<K, V> entry = requireNonNull(entryArray[i]);
                Object key = entry.getKey();
                Object value = entry.getValue();
                checkEntryNotNull(key, value);
                keys[i] = key;
                values[i] = value;
              }
            } else {
              // Need to sort and check for nulls and dupes.
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Thu Feb 22 21:19:52 GMT 2024
    - 50.3K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/collect/Multimaps.java

       *
       * @param values the values to use when constructing the {@code ImmutableListMultimap}
       * @param keyFunction the function used to produce the key for each value
       * @return {@code ImmutableListMultimap} mapping the result of evaluating the function {@code
       *     keyFunction} on each value in the input collection to that value
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 86.4K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/collect/IteratorsTest.java

          super(5, MODIFIABLE, newArrayList(1, 2), IteratorTester.KnownOrder.KNOWN_ORDER);
        }
      }
    
      private static Iterator<Integer> iterateOver(int... values) {
        // Note: Ints.asList's iterator does not support remove which we need for testing.
        return new ArrayList<>(Ints.asList(values)).iterator();
      }
    
      public void testElementsEqual() {
        Iterable<?> a;
        Iterable<?> b;
    
        // Base case.
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 55.7K bytes
    - Viewed (0)
  10. guava/src/com/google/common/cache/CacheBuilder.java

      }
    
      /**
       * Builds a cache, which either returns an already-loaded value for a given key or atomically
       * computes or retrieves it using the supplied {@code CacheLoader}. If another thread is currently
       * loading the value for this key, simply waits for that thread to finish and returns its loaded
       * value. Note that multiple threads can concurrently load values for distinct keys.
       *
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Thu Feb 15 16:12:13 GMT 2024
    - 51.3K bytes
    - Viewed (0)
Back to top