Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 7 of 7 for buildJdkBacked (0.06 seconds)

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

          }
        },
        FORCE_JDK {
          @Override
          public ImmutableBiMap<Object, Object> create(List<Entry<?, ?>> entries) {
            return ImmutableBiMap.builder().putAll(entries).buildJdkBacked();
          }
        };
    
        @CanIgnoreReturnValue
        public abstract ImmutableBiMap<Object, Object> create(List<Entry<?, ?>> entries);
      }
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Jul 28 19:11:14 GMT 2025
    - 4.5K bytes
    - Click Count (0)
  2. guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/ImmutableBiMap.java

          if (map.isEmpty()) {
            return of();
          }
          return new RegularImmutableBiMap<K, V>(super.buildOrThrow());
        }
    
        @Override
        ImmutableBiMap<K, V> buildJdkBacked() {
          return build();
        }
      }
    
      public static <K, V> ImmutableBiMap<K, V> copyOf(Map<? extends K, ? extends V> map) {
        if (map instanceof ImmutableBiMap) {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Aug 06 18:32:41 GMT 2025
    - 7.1K bytes
    - Click Count (0)
  3. guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/ImmutableMap.java

                "orderEntriesByValue + buildKeepingLast not supported under GWT");
          }
          return build(/* throwIfDuplicateKeys= */ false);
        }
    
        ImmutableMap<K, V> buildJdkBacked() {
          return build();
        }
      }
    
      private static <K, V> ImmutableMap<K, V> fromEntryList(
          Collection<? extends Entry<? extends K, ? extends V>> entries) {
    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)
  4. guava/src/com/google/common/collect/ImmutableBiMap.java

          throw new UnsupportedOperationException("Not supported for bimaps");
        }
    
        @Override
        @VisibleForTesting
        ImmutableBiMap<K, V> buildJdkBacked() {
          checkState(
              valueComparator == null,
              "buildJdkBacked is for tests only, doesn't support orderEntriesByValue");
          switch (size) {
            case 0:
              return of();
            case 1:
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Sep 23 17:50:58 GMT 2025
    - 22.7K bytes
    - Click Count (0)
  5. guava/src/com/google/common/collect/ImmutableMultiset.java

         * Builder}.
         */
        @Override
        public ImmutableMultiset<E> build() {
          return copyOf(contents);
        }
    
        @VisibleForTesting
        ImmutableMultiset<E> buildJdkBacked() {
          if (contents.isEmpty()) {
            return of();
          }
          return JdkBackedImmutableMultiset.create(contents.entrySet());
        }
      }
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Sep 22 21:07:18 GMT 2025
    - 20.6K bytes
    - Click Count (0)
  6. guava-tests/test/com/google/common/collect/ImmutableMultisetTest.java

                    new TestStringMultisetGenerator() {
                      @Override
                      protected Multiset<String> create(String[] elements) {
                        return ImmutableMultiset.<String>builder().add(elements).buildJdkBacked();
                      }
                    })
                .named("ImmutableMultiset [JDK backed]")
                .withFeatures(
                    CollectionSize.ANY,
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Fri Mar 13 13:01:07 GMT 2026
    - 24.9K bytes
    - Click Count (0)
  7. guava/src/com/google/common/collect/ImmutableMap.java

          return build(false);
        }
    
        @VisibleForTesting // only for testing JDK backed implementation
        ImmutableMap<K, V> buildJdkBacked() {
          checkState(
              valueComparator == null, "buildJdkBacked is only for testing; can't use valueComparator");
          switch (size) {
            case 0:
              return of();
            case 1:
    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