Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 11 for Keys (0.24 sec)

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

          this.keys = new @Nullable Object[initialCapacity];
          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);
    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. guava/src/com/google/common/collect/ImmutableSortedMap.java

          super.put(entry);
          return this;
        }
    
        /**
         * Associates all of the given map's keys and values in the built map. Duplicate keys, according
         * to the comparator (which might be the keys' natural order), are not allowed, and will cause
         * {@link #build} to fail.
         *
         * @throws NullPointerException if any key or value in {@code map} is null
         */
        @CanIgnoreReturnValue
        @Override
    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)
  3. android/guava-tests/test/com/google/common/cache/CacheLoadingTest.java

                return new Object();
              }
    
              @Override
              public Map<Object, Object> loadAll(Iterable<?> keys) throws Exception {
                Map<Object, Object> result = Maps.newHashMap();
                for (Object key : keys) {
                  Object value = new Object();
                  result.put(key, value);
                  // add extra entries
                  result.put(value, key);
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 86.2K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/collect/MapMakerInternalMap.java

     *
     * <p>This implementation is heavily derived from revision 1.96 of <a
     * href="http://tinyurl.com/ConcurrentHashMap">ConcurrentHashMap.java</a>.
     *
     * @param <K> the type of the keys in the map
     * @param <V> the type of the values in the map
     * @param <E> the type of the {@link InternalEntry} entry implementation used internally
     * @param <S> the type of the {@link Segment} entry implementation used internally
    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)
  5. guava-tests/test/com/google/common/cache/CacheLoadingTest.java

                return new Object();
              }
    
              @Override
              public Map<Object, Object> loadAll(Iterable<?> keys) throws Exception {
                Map<Object, Object> result = Maps.newHashMap();
                for (Object key : keys) {
                  Object value = new Object();
                  result.put(key, value);
                  // add extra entries
                  result.put(value, key);
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 86.2K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/collect/Multimaps.java

          return unmodifiableValueCollection(delegate.get(key));
        }
    
        @Override
        public Multiset<K> keys() {
          Multiset<K> result = keys;
          if (result == null) {
            keys = result = Multisets.unmodifiableMultiset(delegate.keys());
          }
          return result;
        }
    
        @Override
        public Set<K> keySet() {
          Set<K> result = keySet;
    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)
  7. guava/src/com/google/common/cache/CacheBuilder.java

     *
     * <p><b>Note:</b> by default, the returned cache uses equality comparisons (the {@link
     * Object#equals equals} method) to determine equality for keys or values. However, if {@link
     * #weakKeys} was specified, the cache uses identity ({@code ==}) comparisons instead for keys.
     * Likewise, if {@link #weakValues} or {@link #softValues} was specified, the cache uses identity
     * comparisons for 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)
  8. android/guava/src/com/google/common/collect/Synchronized.java

            }
            return asMap;
          }
        }
    
        @Override
        public Multiset<K> keys() {
          synchronized (mutex) {
            if (keys == null) {
              keys = multiset(delegate().keys(), mutex);
            }
            return keys;
          }
        }
    
        @Override
        public boolean equals(@CheckForNull Object o) {
          if (o == this) {
            return true;
    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)
  9. guava-tests/test/com/google/common/collect/MapsTest.java

        try {
          Maps.uniqueIndex((List<String>) listWithNull, Functions.constant(1));
          fail();
        } catch (NullPointerException expected) {
        }
      }
    
      /** Null keys aren't allowed either. */
      public void testUniqueIndexNullKey() {
        List<String> oneStringList = Lists.newArrayList("foo");
        try {
          Maps.uniqueIndex(oneStringList, Functions.constant(null));
          fail();
    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)
  10. android/guava-tests/test/com/google/common/collect/MapsTest.java

        try {
          Maps.uniqueIndex((List<String>) listWithNull, Functions.constant(1));
          fail();
        } catch (NullPointerException expected) {
        }
      }
    
      /** Null keys aren't allowed either. */
      public void testUniqueIndexNullKey() {
        List<String> oneStringList = Lists.newArrayList("foo");
        try {
          Maps.uniqueIndex(oneStringList, Functions.constant(null));
          fail();
    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)
Back to top