Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for BiMap (0.16 sec)

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

      }
    
      public void testAsConverter_withNullMapping() throws Exception {
        BiMap<String, @Nullable Integer> biMap = HashBiMap.create();
        biMap.put("one", 1);
        biMap.put("two", 2);
        biMap.put("three", null);
        try {
          Maps.asConverter((BiMap<String, Integer>) biMap).convert("three");
          fail();
        } catch (IllegalArgumentException expected) {
        }
      }
    
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Mar 04 16:06:01 GMT 2024
    - 67.2K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/collect/MapsTest.java

      }
    
      public void testAsConverter_withNullMapping() throws Exception {
        BiMap<String, @Nullable Integer> biMap = HashBiMap.create();
        biMap.put("one", 1);
        biMap.put("two", 2);
        biMap.put("three", null);
        try {
          Maps.asConverter((BiMap<String, Integer>) biMap).convert("three");
          fail();
        } catch (IllegalArgumentException expected) {
        }
      }
    
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Mar 04 16:06:01 GMT 2024
    - 64.3K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/collect/Synchronized.java

      }
    
      static <K extends @Nullable Object, V extends @Nullable Object> BiMap<K, V> biMap(
          BiMap<K, V> bimap, @CheckForNull Object mutex) {
        if (bimap instanceof SynchronizedBiMap || bimap instanceof ImmutableBiMap) {
          return bimap;
        }
        return new SynchronizedBiMap<>(bimap, mutex, null);
      }
    
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 53.4K bytes
    - Viewed (0)
Back to top