public class BundleUtils extends Object
| Constructor and Description |
|---|
BundleUtils() |
| Modifier and Type | Method and Description |
|---|---|
static Integer |
getInteger(ResourceBundle resourceBundle,
String key)
Gets a integer for the given key from the given resource bundle or one of its parents.
|
static String |
getString(ResourceBundle resourceBundle,
String key)
Gets a string for the given key from the given resource bundle or one of its parents.
|
static String |
getString(ResourceBundle resourceBundle,
String key,
double[] parameters)
Gets a parameterised string for the given key from the given resource bundle or one of its parents.
|
static String |
getString(ResourceBundle resourceBundle,
String key,
int[] parameters)
Gets a parameterised string for the given key from the given resource bundle or one of its parents.
|
static String |
getString(ResourceBundle resourceBundle,
String key,
Object[] parameters)
Gets a parameterised string for the given key from the given resource bundle or one of its parents.
|
static String |
getString(ResourceBundle resourceBundle,
String key,
String[] parameters)
Gets a parameterised string for the given key from the given resource bundle or one of its parents.
|
static String[] |
getStringArray(ResourceBundle resourceBundle,
String key)
Gets a string array for the given key from the given resource bundle or one of its parents.
|
static String[] |
getStringArray(ResourceBundle resourceBundle,
String key,
int[] parameters)
Gets a parameterised string array for the given key from the given resource bundle or one of its parents.
|
static String[] |
getStringArray(ResourceBundle resourceBundle,
String key,
String[] parameters)
Gets a parameterised string array for the given key from the given resource bundle or one of its parents.
|
static List<String> |
getStringList(ResourceBundle resourceBundle,
String key)
Gets a string list for the given key from the given resource bundle or one of its parents.
|
static List<String> |
getStringList(ResourceBundle resourceBundle,
String key,
int[] parameters)
Gets a parameterised string list for the given key from the given resource bundle or one of its parents.
|
static List<String> |
getStringList(ResourceBundle resourceBundle,
String key,
String[] parameters)
Gets a parameterised string list for the given key from the given resource bundle or one of its parents.
|
static boolean |
hasKey(ResourceBundle resourceBundle,
String key) |
public static final String getString(ResourceBundle resourceBundle, String key)
resourceBundle - the resource bundle containing the required stringkey - the key of the string in the resource bundlepublic static String[] getStringArray(ResourceBundle resourceBundle, String key)
resourceBundle - the resource bundle containing the required stringkey - the key of the string in the resource bundlepublic static final String getString(ResourceBundle resourceBundle, String key, String[] parameters)
i} where n is an integer from 0 to n-1, and n is size of the parameters array, will be replaced
by the ith element in the parameters arrayresourceBundle - the resource bundle containing the required stringkey - the key of the string in the resource bundleparameters - to be substituted into the returned stringpublic static final String getString(ResourceBundle resourceBundle, String key, Object[] parameters)
i} where n is an integer from 0 to n-1, and n is size of the parameters array, will be replaced
by the ith element in the parameters arrayresourceBundle - the resource bundle containing the required stringkey - the key of the string in the resource bundleparameters - to be substituted into the returned stringpublic static String[] getStringArray(ResourceBundle resourceBundle, String key, String[] parameters)
i} where n is an integer from 0 to n-1, and n is size of the parameters array, will be replaced
by the ith element in the parameters arrayresourceBundle - the resource bundle containing the required stringkey - the key of the string in the resource bundleparameters - to be substituted into the returned stringpublic static final String getString(ResourceBundle resourceBundle, String key, int[] parameters)
i} where n is an integer from 0 to n-1, and n is size of the parameters array, will be replaced
by the ith element in the parameters arrayresourceBundle - the resource bundle containing the required stringkey - the key of the string in the resource bundleparameters - to be substituted into the returned stringpublic static final String getString(ResourceBundle resourceBundle, String key, double[] parameters)
i} where n is an integer from 0 to n-1, and n is size of the parameters array, will be replaced
by the ith element in the parameters arrayresourceBundle - the resource bundle containing the required stringkey - the key of the string in the resource bundleparameters - to be substituted into the returned stringpublic static String[] getStringArray(ResourceBundle resourceBundle, String key, int[] parameters)
i} where n is an integer from 0 to n-1, and n is size of the parameters array, will be replaced
by the ith element in the parameters arrayresourceBundle - the resource bundle containing the required stringkey - the key of the string in the resource bundleparameters - to be substituted into the returned stringpublic static List<String> getStringList(ResourceBundle resourceBundle, String key)
resourceBundle - the resource bundle containing the required stringkey - the key of the string in the resource bundlepublic static List<String> getStringList(ResourceBundle resourceBundle, String key, String[] parameters)
i} where n is an integer from 0 to n-1, and n is size of the parameters array, will be replaced
by the ith element in the parameters arrayresourceBundle - the resource bundle containing the required stringkey - the key of the string in the resource bundleparameters - to be substituted into the returned stringpublic static List<String> getStringList(ResourceBundle resourceBundle, String key, int[] parameters)
i} where n is an integer from 0 to n-1, and n is size of the parameters array, will be replaced
by the ith element in the parameters arrayresourceBundle - the resource bundle containing the required stringkey - the key of the string in the resource bundleparameters - to be substituted into the returned stringpublic static final Integer getInteger(ResourceBundle resourceBundle, String key)
resourceBundle - the resource bundle containing the required integerkey - the key of the integer in the resource bundlepublic static final boolean hasKey(ResourceBundle resourceBundle, String key)
Copyright © 2016. All rights reserved.