Class TranslationDynamicHeaderFieldMapping.FieldNamesToHeaderNamesInitializer
java.lang.Object
org.apache.commons.lang3.concurrent.AbstractConcurrentInitializer<T,org.apache.commons.lang3.concurrent.ConcurrentException>
- All Implemented Interfaces:
org.apache.commons.lang3.concurrent.ConcurrentInitializer<Map<String,
,Map<String, String>>> org.apache.commons.lang3.function.FailableSupplier<Map<String,
Map<String, String>>, org.apache.commons.lang3.concurrent.ConcurrentException>
- Enclosing class:
- TranslationDynamicHeaderFieldMapping
public static class TranslationDynamicHeaderFieldMapping.FieldNamesToHeaderNamesInitializer
extends org.apache.commons.lang3.concurrent.LazyInitializer<Map<String,Map<String,String>>>
For reverse-mapping cases as are needed in
TranslationDynamicHeaderFieldMapping.mapFromFieldToHeader(String, String)
, we
want the reverse mappings from ImportSpecification.getHeaderFieldConfigsByRowType()
to be computed exactly once and in a thread-safe way. Thus, we leverage the lazy initializer
pattern.-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.commons.lang3.concurrent.LazyInitializer
org.apache.commons.lang3.concurrent.LazyInitializer.Builder<I extends org.apache.commons.lang3.concurrent.LazyInitializer<T>,
T extends Object> Nested classes/interfaces inherited from class org.apache.commons.lang3.concurrent.AbstractConcurrentInitializer
org.apache.commons.lang3.concurrent.AbstractConcurrentInitializer.AbstractBuilder<I extends org.apache.commons.lang3.concurrent.AbstractConcurrentInitializer<T,
E>, T extends Object, B extends org.apache.commons.lang3.concurrent.AbstractConcurrentInitializer.AbstractBuilder<I, T, B, E>, E extends Exception> -
Field Summary
Fields inherited from interface org.apache.commons.lang3.function.FailableSupplier
NUL
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.apache.commons.lang3.concurrent.LazyInitializer
builder, get, getTypedException, isInitialized
Methods inherited from class org.apache.commons.lang3.concurrent.AbstractConcurrentInitializer
close
-
Constructor Details
-
FieldNamesToHeaderNamesInitializer
-
-
Method Details
-
initialize
-