/** * Associates the specified value with the specified key in this map. * * @param key key with which the specified value is to be associated. * @param value value to be associated with the specified key. * @return previous value associated with specified key, or {@code null} * if there was no mapping for key. * @throws UnsupportedOperationException if the converters are not invertible, * or the {@linkplain #storage} map doesn't supports the {@code put} operation. */ @Override public V put(final K key, final V value) throws UnsupportedOperationException { return put(key, keyConverter.inverse().apply(key), valueConverter.inverse().apply(value)); }
/** * Associates the specified value with the specified key in this map. * * @param key key with which the specified value is to be associated. * @param value value to be associated with the specified key. * @return previous value associated with specified key, or {@code null} * if there was no mapping for key. * @throws UnsupportedOperationException if the converters are not invertible, * or the {@linkplain #storage} map doesn't supports the {@code put} operation. */ @Override public V put(final K key, final V value) throws UnsupportedOperationException { return put(key, keyConverter.inverse().apply(key), valueConverter.inverse().apply(value)); }