Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 31 for ImmutableBiMap (0.11 sec)

  1. android/guava-testlib/src/com/google/common/collect/testing/google/BiMapGenerators.java

      public static class ImmutableBiMapGenerator extends TestStringBiMapGenerator {
        @Override
        protected BiMap<String, String> create(Entry<String, String>[] entries) {
          ImmutableBiMap.Builder<String, String> builder = ImmutableBiMap.builder();
          for (Entry<String, String> entry : entries) {
            checkNotNull(entry);
            builder.put(entry.getKey(), entry.getValue());
          }
          return builder.build();
        }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:05:46 UTC 2024
    - 2.3K bytes
    - Viewed (0)
  2. android/guava-testlib/src/com/google/common/testing/ArbitraryInstances.java

              .put(SortedMultiset.class, ImmutableSortedMultiset.of())
              .put(ImmutableSortedMultiset.class, ImmutableSortedMultiset.of())
              .put(BiMap.class, ImmutableBiMap.of())
              .put(ImmutableBiMap.class, ImmutableBiMap.of())
              .put(Table.class, ImmutableTable.of())
              .put(ImmutableTable.class, ImmutableTable.of())
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:26:48 UTC 2024
    - 20.8K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/graph/UndirectedNetworkConnections.java

    package com.google.common.graph;
    
    import static com.google.common.graph.GraphConstants.EXPECTED_DEGREE;
    
    import com.google.common.collect.BiMap;
    import com.google.common.collect.HashBiMap;
    import com.google.common.collect.ImmutableBiMap;
    import java.util.Collections;
    import java.util.Map;
    import java.util.Set;
    
    /**
     * An implementation of {@link NetworkConnections} for undirected networks.
     *
     * @author James Sexton
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 01 17:18:04 UTC 2021
    - 1.9K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/collect/CollectCollectors.java

      }
    
      static <T extends @Nullable Object, K, V> Collector<T, ?, ImmutableBiMap<K, V>> toImmutableBiMap(
          Function<? super T, ? extends K> keyFunction,
          Function<? super T, ? extends V> valueFunction) {
        checkNotNull(keyFunction);
        checkNotNull(valueFunction);
        return Collector.of(
            ImmutableBiMap.Builder<K, V>::new,
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:05:46 UTC 2024
    - 17.1K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/collect/ImmutableBiMapMapInterfaceTest.java

        extends AbstractImmutableBiMapMapInterfaceTest<String, Integer> {
      @Override
      protected Map<String, Integer> makeEmptyMap() {
        return ImmutableBiMap.of();
      }
    
      @Override
      protected Map<String, Integer> makePopulatedMap() {
        return ImmutableBiMap.of("one", 1, "two", 2, "three", 3);
      }
    
      @Override
      protected String getKeyNotInPopulatedMap() {
        return "minus one";
      }
    
      @Override
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Mar 09 16:16:28 UTC 2022
    - 1.2K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/collect/RegularImmutableBiMap.java

     */
    @GwtCompatible(serializable = true, emulated = true)
    @SuppressWarnings("serial") // uses writeReplace(), not default serialization
    @ElementTypesAreNonnullByDefault
    final class RegularImmutableBiMap<K, V> extends ImmutableBiMap<K, V> {
      static final RegularImmutableBiMap<Object, Object> EMPTY = new RegularImmutableBiMap<>();
    
      @CheckForNull private final transient Object keyHashTable;
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Nov 30 21:54:06 UTC 2023
    - 4.3K bytes
    - Viewed (0)
  7. guava-testlib/src/com/google/common/testing/ArbitraryInstances.java

              .put(SortedMultiset.class, ImmutableSortedMultiset.of())
              .put(ImmutableSortedMultiset.class, ImmutableSortedMultiset.of())
              .put(BiMap.class, ImmutableBiMap.of())
              .put(ImmutableBiMap.class, ImmutableBiMap.of())
              .put(Table.class, ImmutableTable.of())
              .put(ImmutableTable.class, ImmutableTable.of())
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:26:48 UTC 2024
    - 21.2K bytes
    - Viewed (0)
  8. android/guava-testlib/test/com/google/common/testing/ArbitraryInstancesTest.java

        assertTrue(ArbitraryInstances.get(RowSortedTable.class).isEmpty());
        assertEquals(ImmutableBiMap.of(), ArbitraryInstances.get(BiMap.class));
        assertEquals(ImmutableBiMap.of(), ArbitraryInstances.get(ImmutableBiMap.class));
        assertTrue(ArbitraryInstances.get(ImmutableClassToInstanceMap.class).isEmpty());
        assertTrue(ArbitraryInstances.get(ClassToInstanceMap.class).isEmpty());
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:26:48 UTC 2024
    - 21.8K bytes
    - Viewed (0)
  9. guava-testlib/test/com/google/common/testing/FreshValueGeneratorTest.java

    import com.google.common.collect.HashBasedTable;
    import com.google.common.collect.HashBiMap;
    import com.google.common.collect.HashMultimap;
    import com.google.common.collect.HashMultiset;
    import com.google.common.collect.ImmutableBiMap;
    import com.google.common.collect.ImmutableCollection;
    import com.google.common.collect.ImmutableList;
    import com.google.common.collect.ImmutableListMultimap;
    import com.google.common.collect.ImmutableMap;
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Dec 04 17:37:03 UTC 2017
    - 18.4K bytes
    - Viewed (0)
  10. guava-testlib/src/com/google/common/testing/FreshValueGenerator.java

        HashBiMap<K, V> bimap = HashBiMap.create();
        bimap.put(key, value);
        return bimap;
      }
    
      @Generates
      static <K, V> ImmutableBiMap<K, V> generateImmutableBimap(K key, V value) {
        return ImmutableBiMap.of(key, value);
      }
    
      @Generates
      static <R, C, V> Table<R, C, V> generateTable(R row, C column, V value) {
        return generateHashBasedTable(row, column, value);
      }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jul 23 14:22:54 UTC 2024
    - 28.7K bytes
    - Viewed (0)
Back to top