Search Options

Results per page
Sort
Preferred Languages
Advance

Results 81 - 90 of 167 for ImmutableMap (0.06 sec)

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

        ImmutableBiMap.Builder<String, Integer> builder =
            new ImmutableBiMap.Builder<String, Integer>(2).put("four", 4).put("one", 1);
        ImmutableMap<String, Integer> keyOrdered = builder.build();
        ImmutableMap<String, Integer> valueOrdered =
            builder.orderEntriesByValue(Ordering.natural()).build();
        assertMapEquals(keyOrdered, "four", 4, "one", 1);
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 21.2K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/collect/FauxveridesTest.java

     *
     * @author Chris Povirk
     */
    @NullUnmarked
    public class FauxveridesTest extends TestCase {
      public void testImmutableBiMap() {
        doHasAllFauxveridesTest(ImmutableBiMap.class, ImmutableMap.class);
      }
    
      public void testImmutableListMultimap() {
        doHasAllFauxveridesTest(ImmutableListMultimap.class, ImmutableMultimap.class);
      }
    
      public void testImmutableSetMultimap() {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue Jul 08 18:32:10 UTC 2025
    - 9.4K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/escape/EscapersTest.java

      static CharEscaper createSimpleCharEscaper(ImmutableMap<Character, char[]> replacementMap) {
        return new CharEscaper() {
          @Override
          protected char[] escape(char c) {
            return replacementMap.get(c);
          }
        };
      }
    
      // A trivial non-optimized escaper for testing.
      static UnicodeEscaper createSimpleUnicodeEscaper(ImmutableMap<Integer, char[]> replacementMap) {
        return new UnicodeEscaper() {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 18:46:00 UTC 2025
    - 4.1K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/xml/ParametricNullness.java

     *       of the type argument supplied by the user of the class: For example, {@code
     *       ImmutableMap.get} returns {@code @Nullable E} because the method can return {@code null}
     *       even on an {@code ImmutableMap<K, @NonNull String>}.
     * </ul>
     *
     * <p>Consumers of this annotation include:
     *
     * <ul>
     *   <li>NullAway, which <a
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Dec 21 16:20:21 UTC 2024
    - 3.1K bytes
    - Viewed (0)
  5. guava/src/com/google/common/io/ParametricNullness.java

     *       of the type argument supplied by the user of the class: For example, {@code
     *       ImmutableMap.get} returns {@code @Nullable E} because the method can return {@code null}
     *       even on an {@code ImmutableMap<K, @NonNull String>}.
     * </ul>
     *
     * <p>Consumers of this annotation include:
     *
     * <ul>
     *   <li>NullAway, which <a
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Dec 21 16:20:21 UTC 2024
    - 3.1K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/base/JoinerTest.java

      }
    
      public void testMap() {
        MapJoiner j = Joiner.on(';').withKeyValueSeparator(':');
        assertEquals("", j.join(ImmutableMap.of()));
        assertEquals(":", j.join(ImmutableMap.of("", "")));
    
        Map<@Nullable String, @Nullable String> mapWithNulls = new LinkedHashMap<>();
        mapWithNulls.put("a", null);
        mapWithNulls.put(null, "b");
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 12.7K bytes
    - Viewed (0)
  7. guava/src/com/google/common/collect/ImmutableTable.java

            (ImmutableMap<C, V>) rowMap().get(rowKey), ImmutableMap.<C, V>of());
      }
    
      @Override
      public ImmutableSet<R> rowKeySet() {
        return rowMap().keySet();
      }
    
      /**
       * {@inheritDoc}
       *
       * <p>The value {@code Map<C, V>} instances in the returned map are {@link ImmutableMap} instances
       * as well.
       */
      @Override
      public abstract ImmutableMap<R, Map<C, V>> rowMap();
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 17:27:14 UTC 2025
    - 17.3K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/collect/ImmutableBiMap.java

          Collector<T, ?, ImmutableMap<K, V>> toImmutableMap(
              Function<? super T, ? extends K> keyFunction,
              Function<? super T, ? extends V> valueFunction) {
        throw new UnsupportedOperationException();
      }
    
      /**
       * Not supported. This method does not make sense for {@code BiMap}. This method exists only to
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 22.2K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/reflect/TypeResolver.java

        }
      }
    
      /** A TypeTable maintains mapping from {@link TypeVariable} to types. */
      private static class TypeTable {
        private final ImmutableMap<TypeVariableKey, Type> map;
    
        TypeTable() {
          this.map = ImmutableMap.of();
        }
    
        private TypeTable(ImmutableMap<TypeVariableKey, Type> map) {
          this.map = map;
        }
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Sep 03 14:03:14 UTC 2025
    - 24.2K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/collect/SingletonImmutableMapWithUnhashableValueMapInterfaceTest.java

    @GwtIncompatible // GWT's ImmutableMap emulation is backed by java.util.HashMap.
    @NullUnmarked
    public class SingletonImmutableMapWithUnhashableValueMapInterfaceTest
        extends RegularImmutableMapWithUnhashableValuesMapInterfaceTest {
      @Override
      protected Map<Integer, UnhashableObject> makePopulatedMap() {
        Unhashables unhashables = new Unhashables();
        return ImmutableMap.of(0, unhashables.e0());
      }
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Dec 19 18:03:30 UTC 2024
    - 1.3K bytes
    - Viewed (0)
Back to top