/guava/guava/src/com/google/common/collect/Maps.java
private BiMap<A, B> bimap;
private final BiMap<A, B> bimap;
} } public static <A, B> Converter<A, B> asConverter(final BiMap<A, B> bimap) { return new BiMapConverter<>(bimap); } private static final class BiMapConverter<A, B> extends Converter<A, B> implements Serializable { <extra_id_0> BiMapConverter(BiMap<A, B> bimap) { this.bimap = checkNotNull(bimap); } @Override protected B doForward(A a) { return convert(bimap, a);