![JAR search and dependency download from the Maven repository](/logo.png)
com.github.chaosfirebolt.converter.BiDirectionalRomanIntegerCache Maven / Gradle / Ivy
package com.github.chaosfirebolt.converter;
import com.github.chaosfirebolt.converter.api.cache.ParserCache;
import com.github.chaosfirebolt.converter.api.cache.storage.Computation;
import com.github.chaosfirebolt.converter.api.cache.storage.Storage;
import com.github.chaosfirebolt.converter.api.initialization.InitializationData;
import java.util.Map;
import java.util.Optional;
import java.util.function.Supplier;
/**
* Cache saving computed roman integers in both directions - roman value to roman integer and arabic value to roman integer.
*
* @since 3.3.0
*/
public final class BiDirectionalRomanIntegerCache extends DefaultRomanIntegerCache {
/**
* @param parserCache cache for parser instances
*/
public BiDirectionalRomanIntegerCache(ParserCache parserCache) {
super(parserCache);
}
/**
* @param parserCache cache for parser instances
* @param storage storage for key to computed value
* @param initializationData data to pre initialize the cache with
*/
public BiDirectionalRomanIntegerCache(ParserCache parserCache, Storage storage, InitializationData
© 2015 - 2025 Weber Informatics LLC | Privacy Policy