tuweni / org.apache.tuweni.kv / ProxyKeyValueStore / open

open

@JvmStatic fun <K, V, E, R> open(store: KeyValueStore<E, R>, unproxyKey: Function<E, K>, proxyKey: Function<K, E>, unproxyValue: Function<R, V>, proxyValue: BiFunction<K, V, R>): ProxyKeyValueStore<K, V, E, R> (source)

Opens a proxy store.

Parameters

store - the store to proxy

unproxyKey - the function to convert a key from the underlying store into a key of this store

proxyKey - the function to convert a key from this store to the underlying store

unproxyValue - the function to convert a value from the underlying store into a value of this store

proxyValue - the function to convert a value from this store to the underlying store

Return
A key-value store proxying the store passed in.