Package de.xima.fc.utils
Class XLanguageUtils
- java.lang.Object
-
- de.xima.fc.utils.XLanguageUtils
-
public class XLanguageUtils extends Object
Utility class for providing default languages- Author:
- XIMA MEDIA GmbH
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Map<String,String>
getAvailableDefaultLanguages(Locale displayLocale)
Returns a map of language display names and their IETF BCP 47 language tagstatic Integer
parseIntOrNull(String value)
Parses the value as an integer, if possible, or returns null if it cannot be parsed.static Long
parseLongOrNull(String value)
Parses the value as a long, if possible, or returns null if it cannot be parsed.
-
-
-
Method Detail
-
getAvailableDefaultLanguages
public static final Map<String,String> getAvailableDefaultLanguages(Locale displayLocale)
Returns a map of language display names and their IETF BCP 47 language tag
-
parseLongOrNull
public static Long parseLongOrNull(String value)
Parses the value as a long, if possible, or returns null if it cannot be parsed.- Parameters:
value
- Value to parse.- Returns:
- The long represented by the string, or
null
when the string does not represent a valid long.
-
-