Search Options

Results per page
Sort
Preferred Languages
Advance

Results 61 - 70 of 257 for ImmutableMap (0.19 sec)

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

    import java.util.Map;
    
    @GwtIncompatible // GWT's ImmutableMap emulation is backed by java.util.HashMap.
    public class RegularImmutableMapWithUnhashableValuesMapInterfaceTest
        extends AbstractImmutableMapMapInterfaceTest<Integer, UnhashableObject> {
      @Override
      protected Map<Integer, UnhashableObject> makeEmptyMap() {
        return ImmutableMap.of();
      }
    
      @Override
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Mar 09 02:18:08 GMT 2022
    - 1.6K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/escape/ArrayBasedCharEscaperTest.java

    import com.google.common.collect.ImmutableMap;
    import com.google.common.escape.testing.EscaperAsserts;
    import java.io.IOException;
    import junit.framework.TestCase;
    
    /**
     * @author David Beaumont
     */
    @GwtCompatible
    @ElementTypesAreNonnullByDefault
    public class ArrayBasedCharEscaperTest extends TestCase {
      private static final ImmutableMap<Character, String> NO_REPLACEMENTS = ImmutableMap.of();
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Feb 07 23:02:38 GMT 2024
    - 3.5K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/collect/AbstractMapsTransformValuesTest.java

        Map<String, String> map =
            Maps.transformValues(ImmutableMap.<String, Integer>of(), Functions.toStringFunction());
        assertMapsEqual(Maps.newHashMap(), map);
      }
    
      public void testTransformSingletonMapEquality() {
        Map<String, String> map =
            Maps.transformValues(ImmutableMap.of("a", 1), Functions.toStringFunction());
        Map<String, String> expected = ImmutableMap.of("a", "1");
        assertMapsEqual(expected, map);
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 9.3K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/graph/ImmutableNetwork.java

        // ImmutableMap.Builder maintains the order of the elements as inserted, so the map will have
        // whatever ordering the network's nodes do, so ImmutableSortedMap is unnecessary even if the
        // input nodes are sorted.
        ImmutableMap.Builder<N, NetworkConnections<N, E>> nodeConnections = ImmutableMap.builder();
        for (N node : network.nodes()) {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Feb 01 16:30:37 GMT 2022
    - 9.6K bytes
    - Viewed (0)
  5. android/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();
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 17.6K bytes
    - Viewed (0)
  6. 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);
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Feb 21 10:16:44 GMT 2024
    - 22.4K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/escape/ArrayBasedUnicodeEscaperTest.java

    import com.google.common.collect.ImmutableMap;
    import com.google.common.escape.testing.EscaperAsserts;
    import java.io.IOException;
    import junit.framework.TestCase;
    
    /**
     * @author David Beaumont
     */
    @GwtCompatible
    @ElementTypesAreNonnullByDefault
    public class ArrayBasedUnicodeEscaperTest extends TestCase {
      private static final ImmutableMap<Character, String> NO_REPLACEMENTS = ImmutableMap.of();
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Feb 07 23:02:38 GMT 2024
    - 5K bytes
    - Viewed (1)
  8. android/guava-tests/test/com/google/common/escape/EscapersTest.java

      static CharEscaper createSimpleCharEscaper(final 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(
          final ImmutableMap<Integer, char[]> replacementMap) {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Oct 10 19:45:10 GMT 2022
    - 5K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/collect/ImmutableEnumMap.java

      static <K extends Enum<K>, V> ImmutableMap<K, V> asImmutable(EnumMap<K, V> map) {
        switch (map.size()) {
          case 0:
            return ImmutableMap.of();
          case 1:
            Entry<K, V> entry = Iterables.getOnlyElement(map.entrySet());
            return ImmutableMap.of(entry.getKey(), entry.getValue());
          default:
            return new ImmutableEnumMap<>(map);
        }
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Mar 06 16:06:58 GMT 2023
    - 3.7K bytes
    - Viewed (0)
  10. guava/src/com/google/common/collect/ImmutableClassToInstanceMap.java

       *
       * @since 19.0
       */
      public static <B, T extends B> ImmutableClassToInstanceMap<B> of(Class<T> type, T value) {
        ImmutableMap<Class<? extends B>, B> map = ImmutableMap.<Class<? extends B>, B>of(type, value);
        return new ImmutableClassToInstanceMap<>(map);
      }
    
      /**
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Wed May 10 21:56:03 GMT 2023
    - 7.1K bytes
    - Viewed (0)
Back to top