Search Options

Results per page
Sort
Preferred Languages
Advance

Results 181 - 190 of 199 for ImmutableMap (0.14 sec)

  1. guava-tests/test/com/google/common/collect/BenchmarkHelpers.java

            return new ConcurrentHashMap<>(map);
          }
        },
        ImmutableMapImpl {
          @Override
          public <K extends Comparable<K>, V> Map<K, V> create(Map<K, V> map) {
            return ImmutableMap.copyOf(map);
          }
        },
        MapMakerStrongKeysStrongValues {
          @Override
          public <K extends Comparable<K>, V> Map<K, V> create(Map<K, V> map) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 12.4K bytes
    - Viewed (0)
  2. guava/src/com/google/common/collect/TreeRangeMap.java

            entriesByLowerBound.subMap(range.lowerBound, range.upperBound).entrySet();
    
        // Create entries mapping any unmapped ranges in the merge range to the specified value.
        ImmutableMap.Builder<Cut<K>, RangeMapEntry<K, V>> gaps = ImmutableMap.builder();
        if (value != null) {
          final Iterator<Entry<Cut<K>, RangeMapEntry<K, V>>> backingItr =
              entriesInMergeRange.iterator();
          Cut<K> lowerBound = range.lowerBound;
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 26.7K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/collect/BenchmarkHelpers.java

            return new ConcurrentHashMap<>(map);
          }
        },
        ImmutableMapImpl {
          @Override
          public <K extends Comparable<K>, V> Map<K, V> create(Map<K, V> map) {
            return ImmutableMap.copyOf(map);
          }
        },
        MapMakerStrongKeysStrongValues {
          @Override
          public <K extends Comparable<K>, V> Map<K, V> create(Map<K, V> map) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 12.4K bytes
    - Viewed (0)
  4. guava/src/com/google/common/cache/LocalCache.java

      }
    
      V getOrLoad(K key) throws ExecutionException {
        return get(key, defaultLoader);
      }
    
      ImmutableMap<K, V> getAllPresent(Iterable<?> keys) {
        int hits = 0;
        int misses = 0;
    
        ImmutableMap.Builder<K, V> result = ImmutableMap.builder();
        for (Object key : keys) {
          V value = get(key);
          if (value == null) {
            misses++;
          } else {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 19:07:49 UTC 2024
    - 149.2K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/collect/Sets.java

        return new PowerSet<E>(set);
      }
    
      private static final class SubSet<E> extends AbstractSet<E> {
        private final ImmutableMap<E, Integer> inputSet;
        private final int mask;
    
        SubSet(ImmutableMap<E, Integer> inputSet, int mask) {
          this.inputSet = inputSet;
          this.mask = mask;
        }
    
        @Override
        public Iterator<E> iterator() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Oct 21 14:28:19 UTC 2024
    - 78.8K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/collect/MultimapsCollectionTest.java

                        multimap.putAll(badEntries);
                        multimap =
                            Multimaps.filterEntries(
                                multimap,
                                not(Predicates.in(ImmutableMap.of("one", 159, "two", 265).entrySet())));
                        return filterKeys(multimap, not(Predicates.in(ImmutableSet.of("foo", "bar"))));
                      }
                    })
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 28.7K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/collect/TableCollectionTest.java

        }
    
        @Override
        protected String getKeyNotInPopulatedMap() {
          return "cat";
        }
    
        @Override
        protected Map<Integer, Character> getValueNotInPopulatedMap() {
          return ImmutableMap.of();
        }
    
        /**
         * The version of this test supplied by {@link MapInterfaceTest} fails for this particular map
         * implementation, because {@code map.get()} returns a view collection that changes in the
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 35.2K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/collect/TableCollectionTest.java

        }
    
        @Override
        protected String getKeyNotInPopulatedMap() {
          return "cat";
        }
    
        @Override
        protected Map<Integer, Character> getValueNotInPopulatedMap() {
          return ImmutableMap.of();
        }
    
        /**
         * The version of this test supplied by {@link MapInterfaceTest} fails for this particular map
         * implementation, because {@code map.get()} returns a view collection that changes in the
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 35.2K bytes
    - Viewed (0)
  9. guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/ImmutableSortedMap.java

      }
    
      public static <K extends Comparable<?>, V> Builder<K, V> reverseOrder() {
        return new Builder<K, V>(Ordering.natural().reverse());
      }
    
      public static final class Builder<K, V> extends ImmutableMap.Builder<K, V> {
        private final Comparator<? super K> comparator;
    
        public Builder(Comparator<? super K> comparator) {
          this.comparator = checkNotNull(comparator);
        }
    
        @CanIgnoreReturnValue
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Feb 27 19:19:19 UTC 2024
    - 16.4K bytes
    - Viewed (0)
  10. guava/src/com/google/common/collect/ImmutableCollection.java

     *       However, the precise conditions for skipping the copy operation are undefined.
     *   <li><b>Warning:</b> a view collection such as {@link ImmutableMap#keySet} or {@link
     *       ImmutableList#subList} may retain a reference to the entire data set, preventing it from
     *       being garbage collected. If some of the data is no longer reachable through other means,
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Aug 12 16:59:15 UTC 2024
    - 18.8K bytes
    - Viewed (0)
Back to top