Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 6 of 6 for RegularImmutableMap (0.19 seconds)

  1. guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/RegularImmutableMap.java

    /**
     * GWt emulation of {@link RegularImmutableMap}.
     *
     * @author Hayward Chan
     */
    final class RegularImmutableMap<K, V> extends ForwardingImmutableMap<K, V> {
    
      static final ImmutableMap<Object, Object> EMPTY = new RegularImmutableMap<Object, Object>();
    
      RegularImmutableMap(Map<? extends K, ? extends V> delegate) {
        super(delegate);
      }
    
      RegularImmutableMap(Entry<? extends K, ? extends V>... entries) {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Sat Dec 21 03:10:51 GMT 2024
    - 1.3K bytes
    - Click Count (0)
  2. guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/RegularImmutableBiMap.java

      private final transient ImmutableBiMap<V, K> inverse;
    
      @SuppressWarnings("unchecked") // used only for the empty map, which works for any types
      RegularImmutableBiMap() {
        super(new RegularImmutableMap<K, V>(new HashMap<K, V>()));
        this.inverse = (ImmutableBiMap<V, K>) this;
      }
    
      RegularImmutableBiMap(ImmutableMap<K, V> delegate) {
        super(delegate);
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Jan 27 22:02:32 GMT 2026
    - 1.8K bytes
    - Click Count (0)
  3. guava/src/com/google/common/collect/ImmutableMapEntry.java

    import org.jspecify.annotations.Nullable;
    
    /**
     * Implementation of {@code Entry} for {@link ImmutableMap} that adds extra methods to traverse hash
     * buckets for the key and the value. This allows reuse in {@link RegularImmutableMap} and {@link
     * RegularImmutableBiMap}, which don't have to recopy the entries created by their {@code Builder}
     * implementations.
     *
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Jul 01 21:42:29 GMT 2025
    - 4.6K bytes
    - Click Count (0)
  4. android/guava/src/com/google/common/collect/RegularImmutableBiMap.java

      }
    
      @SuppressWarnings("unchecked")
      @Override
      public @Nullable V get(@Nullable Object key) {
        Object result =
            RegularImmutableMap.get(keyHashTable, alternatingKeysAndValues, size, keyOffset, key);
        /*
         * We can't simply cast the result of `RegularImmutableMap.get` to V because of a bug in our
         * nullness checker (resulting from https://github.com/jspecify/checker-framework/issues/8).
         */
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Aug 11 19:31:30 GMT 2025
    - 4.2K bytes
    - Click Count (0)
  5. guava/src/com/google/common/collect/JdkBackedImmutableMap.java

    package com.google.common.collect;
    
    import static com.google.common.base.Preconditions.checkNotNull;
    import static com.google.common.collect.ImmutableList.asImmutableList;
    import static com.google.common.collect.RegularImmutableMap.makeImmutable;
    import static java.util.Objects.requireNonNull;
    
    import com.google.common.annotations.GwtIncompatible;
    import com.google.common.annotations.J2ktIncompatible;
    import java.util.HashMap;
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Sep 23 17:50:58 GMT 2025
    - 4.7K bytes
    - Click Count (0)
  6. guava/src/com/google/common/collect/JdkBackedImmutableBiMap.java

        Map<V, K> backwardDelegate = Maps.newHashMapWithExpectedSize(n);
        for (int i = 0; i < n; i++) {
          // requireNonNull is safe because the first `n` elements have been filled in.
          Entry<K, V> e = RegularImmutableMap.makeImmutable(requireNonNull(entryArray[i]));
          entryArray[i] = e;
          V oldValue = forwardDelegate.putIfAbsent(e.getKey(), e.getValue());
          if (oldValue != null) {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Sep 23 17:50:58 GMT 2025
    - 4.9K bytes
    - Click Count (0)
Back to Top