Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for fromEntryArray (0.05 sec)

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

      // 'and' with an int to get a table index
      private final transient int mask;
    
      static <K, V> ImmutableMap<K, V> fromEntries(Entry<K, V>... entries) {
        return fromEntryArray(entries.length, entries, /* throwIfDuplicateKeys= */ true);
      }
    
      /**
       * Creates an ImmutableMap from the first n entries in entryArray. This implementation may replace
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Aug 09 01:14:59 UTC 2025
    - 15.8K bytes
    - Viewed (0)
  2. guava/src/com/google/common/collect/RegularImmutableBiMap.java

      private final transient int mask;
      private final transient int hashCode;
    
      static <K, V> ImmutableBiMap<K, V> fromEntries(Entry<K, V>... entries) {
        return fromEntryArray(entries.length, entries);
      }
    
      static <K, V> ImmutableBiMap<K, V> fromEntryArray(int n, @Nullable Entry<K, V>[] entryArray) {
        checkPositionIndex(n, entryArray.length);
        int tableSize = Hashing.closedTableSize(n, MAX_LOAD_FACTOR);
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 11.1K bytes
    - Viewed (0)
  3. guava/src/com/google/common/collect/ImmutableMap.java

                Ordering.from(valueComparator).onResultOf(Maps.<V>valueFunction()));
            localEntries = (@Nullable Entry<K, V>[]) nonNullEntries;
          }
          entriesUsed = true;
          return RegularImmutableMap.fromEntryArray(localSize, localEntries, throwIfDuplicateKeys);
        }
    
        /**
         * Returns a newly-created immutable map. The iteration order of the returned map is the order
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Aug 09 01:14:59 UTC 2025
    - 44.3K bytes
    - Viewed (0)
Back to top