Search Options

Results per page
Sort
Preferred Languages
Advance

Results 151 - 160 of 298 for copyBuf (0.07 sec)

  1. guava/src/com/google/common/collect/ImmutableMap.java

          this.size = 0;
          this.entriesUsed = false;
        }
    
        private void ensureCapacity(int minCapacity) {
          if (minCapacity > entries.length) {
            entries =
                Arrays.copyOf(
                    entries, ImmutableCollection.Builder.expandedCapacity(entries.length, minCapacity));
            entriesUsed = false;
          }
        }
    
        /**
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 44.6K bytes
    - Viewed (0)
  2. android/guava-testlib/src/com/google/common/collect/testing/TestsForSetsInJavaUtil.java

                  @Override
                  public Set<AnEnum> create(AnEnum[] elements) {
                    return (elements.length == 0)
                        ? EnumSet.noneOf(AnEnum.class)
                        : EnumSet.copyOf(MinimalCollection.of(elements));
                  }
                })
            .named("EnumSet")
            .withFeatures(
                SetFeature.GENERAL_PURPOSE,
                CollectionFeature.SERIALIZABLE,
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 15K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/cache/AbstractCache.java

            K castKey = (K) key;
            V value = getIfPresent(key);
            if (value != null) {
              result.put(castKey, value);
            }
          }
        }
        return ImmutableMap.copyOf(result);
      }
    
      /** @since 11.0 */
      @Override
      public void put(K key, V value) {
        throw new UnsupportedOperationException();
      }
    
      /** @since 12.0 */
      @Override
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jun 15 18:00:07 UTC 2021
    - 9.1K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/eventbus/SubscriberRegistry.java

              if (!identifiers.containsKey(ident)) {
                identifiers.put(ident, method);
              }
            }
          }
        }
        return ImmutableList.copyOf(identifiers.values());
      }
    
      /** Global cache of classes to their flattened hierarchy of supertypes. */
      private static final LoadingCache<Class<?>, ImmutableSet<Class<?>>> flattenHierarchyCache =
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 17 15:16:45 UTC 2024
    - 10.8K bytes
    - Viewed (0)
  5. guava/src/com/google/common/collect/DenseImmutableTable.java

        ImmutableMap<C, ImmutableMap<R, V>> columnMap = this.columnMap;
        return ImmutableMap.<C, Map<R, V>>copyOf(columnMap);
      }
    
      @Override
      public ImmutableMap<R, Map<C, V>> rowMap() {
        // Casts without copying.
        ImmutableMap<R, ImmutableMap<C, V>> rowMap = this.rowMap;
        return ImmutableMap.<R, Map<C, V>>copyOf(rowMap);
      }
    
      @Override
      @CheckForNull
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:05:46 UTC 2024
    - 10.1K bytes
    - Viewed (0)
  6. android/guava-tests/benchmark/com/google/common/util/concurrent/StripedBenchmark.java

        Collections.shuffle(asList, new Random(0xdeadbeef));
    
        // do bulk gets with exactly 10 keys (possibly <10 stripes) (or less if numStripes is smaller)
        bulkGetSet = ImmutableList.copyOf(limit(cycle(asList), 10));
      }
    
      @Footprint
      Object sizeOfStriped() {
        return impl.get(numStripes);
      }
    
      // a place to put the locks in sizeOfPopulatedStriped so they don't get GC'd before we measure
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Dec 04 17:37:03 UTC 2017
    - 4K bytes
    - Viewed (0)
  7. guava-tests/benchmark/com/google/common/util/concurrent/StripedBenchmark.java

        Collections.shuffle(asList, new Random(0xdeadbeef));
    
        // do bulk gets with exactly 10 keys (possibly <10 stripes) (or less if numStripes is smaller)
        bulkGetSet = ImmutableList.copyOf(limit(cycle(asList), 10));
      }
    
      @Footprint
      Object sizeOfStriped() {
        return impl.get(numStripes);
      }
    
      // a place to put the locks in sizeOfPopulatedStriped so they don't get GC'd before we measure
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Dec 04 17:37:03 UTC 2017
    - 4K bytes
    - Viewed (0)
  8. guava/src/com/google/common/collect/ImmutableListMultimap.java

       * undocumented and subject to change.
       *
       * @throws NullPointerException if any key or value in {@code multimap} is null
       */
      public static <K, V> ImmutableListMultimap<K, V> copyOf(
          Multimap<? extends K, ? extends V> multimap) {
        if (multimap.isEmpty()) {
          return of();
        }
    
        // TODO(lowasser): copy ImmutableSetMultimap by using asList() on the sets
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Aug 16 20:20:32 UTC 2024
    - 19K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/collect/ImmutableMap.java

       */
      public static <K, V> ImmutableMap<K, V> copyOf(Map<? extends K, ? extends V> map) {
        if ((map instanceof ImmutableMap) && !(map instanceof SortedMap)) {
          @SuppressWarnings("unchecked") // safe since map is not writable
          ImmutableMap<K, V> kvMap = (ImmutableMap<K, V>) map;
          if (!kvMap.isPartialView()) {
            return kvMap;
          }
        }
        return copyOf(map.entrySet());
      }
    
      /**
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 41.5K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/collect/CartesianList.java

        ImmutableList.Builder<List<E>> axesBuilder = new ImmutableList.Builder<>(lists.size());
        for (List<? extends E> list : lists) {
          List<E> copy = ImmutableList.copyOf(list);
          if (copy.isEmpty()) {
            return ImmutableList.of();
          }
          axesBuilder.add(copy);
        }
        return new CartesianList<>(axesBuilder.build());
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Nov 30 21:54:06 UTC 2023
    - 4.8K bytes
    - Viewed (0)
Back to top