Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 9 of 9 for buildKeepingLast (0.1 sec)

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

        assertMapEquals(
            builder.buildKeepingLast(), "three", 3, "one", 1, "five", 5, "four", 4, "two", 2);
        IllegalArgumentException expected =
            assertThrows(IllegalArgumentException.class, () -> builder.buildOrThrow());
        // We don't really care which values the exception message contains, but they should be
        // different from each other. If buildKeepingLast() collapsed duplicates, that might end up not
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue Oct 28 16:03:47 UTC 2025
    - 36.7K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/reflect/Types.java

                // unusual execution environments where that might not be true.
              }
              builder.put(method.getName(), method);
            }
          }
          typeVariableMethods = builder.buildKeepingLast();
        }
    
        private final TypeVariableImpl<?> typeVariableImpl;
    
        TypeVariableInvocationHandler(TypeVariableImpl<?> typeVariableImpl) {
          this.typeVariableImpl = typeVariableImpl;
        }
    
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Fri Oct 31 19:34:24 UTC 2025
    - 24.3K bytes
    - Viewed (0)
  3. guava/src/com/google/common/reflect/Types.java

                // unusual execution environments where that might not be true.
              }
              builder.put(method.getName(), method);
            }
          }
          typeVariableMethods = builder.buildKeepingLast();
        }
    
        private final TypeVariableImpl<?> typeVariableImpl;
    
        TypeVariableInvocationHandler(TypeVariableImpl<?> typeVariableImpl) {
          this.typeVariableImpl = typeVariableImpl;
        }
    
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Fri Oct 31 19:34:24 UTC 2025
    - 24.3K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/collect/ImmutableBiMap.java

         * @deprecated This method does not make sense for bimaps and should not be called.
         * @since 31.1
         */
        @DoNotCall
        @Deprecated
        @Override
        public ImmutableBiMap<K, V> buildKeepingLast() {
          throw new UnsupportedOperationException("Not supported for bimaps");
        }
      }
    
      /**
       * Returns an immutable bimap containing the same entries as {@code map}. If {@code map} somehow
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 22.2K bytes
    - Viewed (0)
  5. guava/src/com/google/common/collect/ImmutableBiMap.java

         * @deprecated This method does not make sense for bimaps and should not be called.
         * @since 31.1
         */
        @DoNotCall
        @Deprecated
        @Override
        public ImmutableBiMap<K, V> buildKeepingLast() {
          throw new UnsupportedOperationException("Not supported for bimaps");
        }
    
        @Override
        @VisibleForTesting
        ImmutableBiMap<K, V> buildJdkBacked() {
          checkState(
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue Sep 23 17:50:58 UTC 2025
    - 22.7K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/collect/ImmutableSortedMap.java

         */
        @DoNotCall
        @Deprecated
        @Override
        public final ImmutableSortedMap<K, V> buildKeepingLast() {
          // TODO(emcmanus): implement
          throw new UnsupportedOperationException(
              "ImmutableSortedMap.Builder does not yet implement buildKeepingLast()");
        }
      }
    
      private final transient RegularImmutableSortedSet<K> keySet;
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Mon Sep 22 21:07:18 UTC 2025
    - 52.9K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/collect/Maps.java

        while (keys.hasNext()) {
          K key = keys.next();
          builder.put(key, valueFunction.apply(key));
        }
        // Using buildKeepingLast() so as not to fail on duplicate keys
        return builder.buildKeepingLast();
      }
    
      /**
       * Returns a map with the given {@code values}, indexed by keys derived from those values. In
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue Sep 23 17:50:58 UTC 2025
    - 157.6K bytes
    - Viewed (0)
  8. guava/src/com/google/common/collect/Maps.java

        while (keys.hasNext()) {
          K key = keys.next();
          builder.put(key, valueFunction.apply(key));
        }
        // Using buildKeepingLast() so as not to fail on duplicate keys
        return builder.buildKeepingLast();
      }
    
      /**
       * Returns a map with the given {@code values}, indexed by keys derived from those values. In
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Mon Nov 17 22:50:48 UTC 2025
    - 163.5K bytes
    - Viewed (0)
  9. guava/src/com/google/common/cache/LocalCache.java

            K castKey = (K) key;
            result.put(castKey, value);
            hits++;
          }
        }
        globalStatsCounter.recordHits(hits);
        globalStatsCounter.recordMisses(misses);
        return result.buildKeepingLast();
      }
    
      ImmutableMap<K, V> getAll(Iterable<? extends K> keys) throws ExecutionException {
        int hits = 0;
        int misses = 0;
    
        Map<K, V> result = new LinkedHashMap<>();
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Thu Sep 11 19:35:11 UTC 2025
    - 148.9K bytes
    - Viewed (0)
Back to top