Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for entryArray (0.28 sec)

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

       * the entries in entryArray with its own entry objects (though they will have the same key/value
       * contents), and may take ownership of entryArray.
       */
      static <K, V> ImmutableMap<K, V> fromEntryArray(
          int n, @Nullable Entry<K, V>[] entryArray, boolean throwIfDuplicateKeys) {
        checkPositionIndex(n, entryArray.length);
        if (n == 0) {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue May 28 18:11:09 UTC 2024
    - 16.2K bytes
    - Viewed (0)
  2. guava/src/com/google/common/collect/RegularImmutableBiMap.java

        checkPositionIndex(n, entryArray.length);
        int tableSize = Hashing.closedTableSize(n, MAX_LOAD_FACTOR);
        int mask = tableSize - 1;
        @Nullable ImmutableMapEntry<K, V>[] keyTable = createEntryArray(tableSize);
        @Nullable ImmutableMapEntry<K, V>[] valueTable = createEntryArray(tableSize);
        /*
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Feb 22 21:19:52 UTC 2024
    - 11.2K bytes
    - Viewed (0)
  3. guava/src/com/google/common/collect/ImmutableBiMap.java

        Entry<K, V>[] entryArray = (Entry<K, V>[]) Iterables.toArray(entries, EMPTY_ENTRY_ARRAY);
        switch (entryArray.length) {
          case 0:
            return of();
          case 1:
            Entry<K, V> entry = entryArray[0];
            return of(entry.getKey(), entry.getValue());
          default:
            /*
             * The current implementation will end up using entryArray directly, though it will write
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Oct 31 16:03:42 UTC 2023
    - 22.6K bytes
    - Viewed (0)
  4. guava/src/com/google/common/collect/ImmutableMap.java

        Entry<K, V>[] entryArray = (Entry<K, V>[]) Iterables.toArray(entries, EMPTY_ENTRY_ARRAY);
        switch (entryArray.length) {
          case 0:
            return of();
          case 1:
            // requireNonNull is safe because the first `size` elements have been filled in.
            Entry<K, V> onlyEntry = requireNonNull(entryArray[0]);
            return of(onlyEntry.getKey(), onlyEntry.getValue());
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Apr 30 14:39:16 UTC 2024
    - 44.6K bytes
    - Viewed (0)
  5. guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/ImmutableMap.java

          default:
            @SuppressWarnings("unchecked") // TODO(cpovirk): Consider storing an Entry<?, ?>[].
            Entry<K, V>[] entryArray = entries.toArray((Entry<K, V>[]) new Entry<?, ?>[entries.size()]);
            return new RegularImmutableMap<K, V>(throwIfDuplicateKeys, entryArray);
        }
      }
    
      public static <K, V> ImmutableMap<K, V> copyOf(Map<? extends K, ? extends V> map) {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Feb 27 19:19:19 UTC 2024
    - 17.1K bytes
    - Viewed (0)
Back to top