public class ConfigPropertyTranslater
extends java.lang.Object
Use case is for handling deprecated config properties by translating them to their non-deprecated equivalents.
Modifier and Type | Class and Description |
---|---|
static class |
ConfigPropertyTranslater.Builder |
Modifier and Type | Method and Description |
---|---|
<T> java.util.Map<java.lang.String,T> |
translate(java.util.Map<java.lang.String,T> originals)
Return a new Map by applying the configured translations to each key.
|
public <T> java.util.Map<java.lang.String,T> translate(java.util.Map<java.lang.String,T> originals)
Exact matches are checked before prefix matches.