Code example for ImmutableBiMap

Methods: inverse

0
        return readOnly;
    } 
 
    @NotNull 
    public ClassDescriptor convertReadOnlyToMutable(@NotNull ClassDescriptor readOnly) {
        ClassDescriptor mutable = mutableToReadOnlyMap.inverse().get(readOnly);
        if (mutable == null) {
            throw new IllegalArgumentException("Given class " + readOnly + " is not a read-only collection");
        } 
        return mutable;
    } 
}