Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 22 for VALUES (0.31 sec)

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

          this.values = new @Nullable Object[initialCapacity];
        }
    
        private void ensureCapacity(int minCapacity) {
          if (minCapacity > keys.length) {
            int newCapacity = ImmutableCollection.Builder.expandedCapacity(keys.length, minCapacity);
            this.keys = Arrays.copyOf(keys, newCapacity);
            this.values = Arrays.copyOf(values, newCapacity);
          }
        }
    
        /**
    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

                        return Sets.union(set1, set2);
                      }
                    })
                .named("Sets.union")
                .withFeatures(CollectionSize.ANY, CollectionFeature.ALLOWS_NULL_VALUES)
                .createTestSuite());
    
        suite.addTest(
            SetTestSuiteBuilder.using(
                    new TestStringSetGenerator() {
                      @Override
    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

        ensureNotDirectlyModifiable(unmod.tailMap(2, true));
    
        Collection<String> values = unmod.values();
        try {
          values.add("4");
          fail("UnsupportedOperationException expected");
        } catch (UnsupportedOperationException expected) {
        }
        try {
          values.remove("four");
          fail("UnsupportedOperationException expected");
    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

        ensureNotDirectlyModifiable(unmod.tailMap(2, true));
    
        Collection<String> values = unmod.values();
        try {
          values.add("4");
          fail("UnsupportedOperationException expected");
        } catch (UnsupportedOperationException expected) {
        }
        try {
          values.remove("four");
          fail("UnsupportedOperationException expected");
    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. guava/src/com/google/common/collect/ImmutableSortedMap.java

      }
    
      /**
       * Returns a {@link Collector} that accumulates elements into an {@code ImmutableSortedMap} whose
       * keys and values are the result of applying the provided mapping functions to the input
       * elements.
       *
       * <p>If the mapped keys contain duplicates (according to the comparator), the values are merged
       * using the specified merging function. Entries will appear in the encounter order of the first
       * occurrence of the key.
    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)
  7. 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)
  8. android/guava/src/com/google/common/collect/Multimaps.java

        public Collection<V> replaceValues(@ParametricNullness K key, Iterable<? extends V> values) {
          throw new UnsupportedOperationException();
        }
    
        @Override
        public Collection<V> values() {
          Collection<V> result = values;
          if (result == null) {
            values = result = Collections.unmodifiableCollection(delegate.values());
          }
          return result;
        }
    
    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

       *
       * <p>Weak values will be garbage collected once they are weakly reachable. This makes them a poor
       * candidate for caching; consider {@link #softValues} instead.
       *
       * <p><b>Note:</b> when this method is used, the resulting cache will use identity ({@code ==})
       * comparison to determine equality of values.
       *
    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