Package org.openhab.core.i18n
Class I18nUtil
java.lang.Object
org.openhab.core.i18n.I18nUtil
- Author:
 - Denis Nobel - Initial contribution
 
- 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionstatic booleanisConstant(@Nullable String key) static StringstripConstant(String key) static StringstripConstantOr(@Nullable String key, Supplier<String> supplier) If key is a constant strip the constant part, otherwise use the supplier provided string. 
- 
Constructor Details
- 
I18nUtil
public I18nUtil() 
 - 
 - 
Method Details
- 
isConstant
 - 
stripConstant
 - 
stripConstantOr
If key is a constant strip the constant part, otherwise use the supplier provided string.- Parameters:
 key- the keysupplier- the supplier that return value is used if key is identified as a constant- Returns:
 - the key with the stripped constant marker or the supplier provided key if it is not identified as a constant
 
 
 -