Search Options

Display Count
Sort
Preferred Language
Advanced Search

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

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

     * differs.)
     *
     * @author Jesse Wilson
     * @author Kevin Bourrillion
     * @author Gregory Kick
     */
    @GwtCompatible
    final class RegularImmutableMap<K, V> extends ImmutableMap<K, V> {
      @SuppressWarnings("unchecked")
      static final ImmutableMap<Object, Object> EMPTY =
          new RegularImmutableMap<>((Entry<Object, Object>[]) ImmutableMap.EMPTY_ENTRY_ARRAY, null, 0);
    
      /**
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Fri Dec 26 20:08:09 GMT 2025
    - 15.7K bytes
    - Click Count (0)
  2. guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/ImmutableMap.java

      public static <K, V> ImmutableMap<K, V> of() {
        return (ImmutableMap<K, V>) RegularImmutableMap.EMPTY;
      }
    
      public static <K, V> ImmutableMap<K, V> of(K k1, V v1) {
        return ImmutableBiMap.of(k1, v1);
      }
    
      public static <K, V> ImmutableMap<K, V> of(K k1, V v1, K k2, V v2) {
        return new RegularImmutableMap<K, V>(entryOf(k1, v1), entryOf(k2, v2));
      }
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Mar 17 15:51:42 GMT 2026
    - 17.2K bytes
    - Click Count (0)
  3. 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)
  4. guava/src/com/google/common/collect/RegularImmutableBiMap.java

    import static com.google.common.collect.ImmutableMapEntry.createEntryArray;
    import static com.google.common.collect.Maps.immutableEntry;
    import static com.google.common.collect.RegularImmutableMap.MAX_HASH_BUCKET_LENGTH;
    import static com.google.common.collect.RegularImmutableMap.checkNoConflictInKeyBucket;
    import static java.util.Objects.requireNonNull;
    
    import com.google.common.annotations.GwtCompatible;
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Fri Dec 26 20:08:09 GMT 2025
    - 11.1K bytes
    - Click Count (0)
  5. android/guava/src/com/google/common/collect/ImmutableMap.java

       * code.
       *
       * <p><b>Performance note:</b> the instance returned is a singleton.
       */
      @SuppressWarnings("unchecked")
      public static <K, V> ImmutableMap<K, V> of() {
        return (ImmutableMap<K, V>) RegularImmutableMap.EMPTY;
      }
    
      /**
       * Returns an immutable map containing a single entry. This map behaves and performs comparably to
       * {@link Collections#singletonMap} but will not accept a null key or value. It is preferable
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Feb 02 19:58:40 GMT 2026
    - 41.2K bytes
    - Click Count (0)
  6. guava/src/com/google/common/collect/ImmutableMap.java

        return RegularImmutableMap.fromEntries(entryOf(k1, v1), entryOf(k2, v2));
      }
    
      /**
       * Returns an immutable map containing the given entries, in order.
       *
       * @throws IllegalArgumentException if duplicate keys are provided
       */
      public static <K, V> ImmutableMap<K, V> of(K k1, V v1, K k2, V v2, K k3, V v3) {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Sun Mar 08 16:16:42 GMT 2026
    - 44.7K bytes
    - Click Count (0)
Back to Top