Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 3 of 3 for asConverter (0.05 seconds)

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

        assertThat(converter.convert(null)).isNull();
        assertThat(converter.reverse().convert(null)).isNull();
      }
    
      public void testAsConverter_isAView() throws Exception {
        BiMap<String, Integer> biMap = HashBiMap.create();
        biMap.put("one", 1);
        biMap.put("two", 2);
        Converter<String, Integer> converter = Maps.asConverter(biMap);
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Fri Mar 13 13:01:07 GMT 2026
    - 63.2K bytes
    - Click Count (0)
  2. android/guava/src/com/google/common/collect/Maps.java

       * com.google.common.base.Functions#forMap(Map)} or {@link
       * com.google.common.base.Functions#forMap(Map, Object)}.
       *
       * @since 16.0
       */
      public static <A, B> Converter<A, B> asConverter(BiMap<A, B> bimap) {
        return new BiMapConverter<>(bimap);
      }
    
      private static final class BiMapConverter<A, B> extends Converter<A, B> implements Serializable {
        private final BiMap<A, B> bimap;
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Apr 01 17:27:13 GMT 2026
    - 157.6K bytes
    - Click Count (0)
  3. guava/src/com/google/common/collect/Maps.java

       * com.google.common.base.Functions#forMap(Map)} or {@link
       * com.google.common.base.Functions#forMap(Map, Object)}.
       *
       * @since 16.0
       */
      public static <A, B> Converter<A, B> asConverter(BiMap<A, B> bimap) {
        return new BiMapConverter<>(bimap);
      }
    
      private static final class BiMapConverter<A, B> extends Converter<A, B> implements Serializable {
        private final BiMap<A, B> bimap;
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Apr 01 17:27:13 GMT 2026
    - 163.4K bytes
    - Click Count (0)
Back to Top