public class ResourceBundles extends Object
| Constructor and Description |
|---|
ResourceBundles() |
| Modifier and Type | Method and Description |
|---|---|
static ResourceBundle |
getBundle(String bundleName)
Get a resource bundle
|
static String |
getCounterGroupName(String group,
String defaultValue)
Get the counter group display name
|
static String |
getCounterName(String group,
String counter,
String defaultValue)
Get the counter display name
|
static <T> T |
getValue(String bundleName,
String key,
String suffix,
T defaultValue)
Get a resource given bundle name and key
|
public static ResourceBundle getBundle(String bundleName)
bundleName - of the resourceMissingResourceExceptionpublic static <T> T getValue(String bundleName, String key, String suffix, T defaultValue)
T - type of the resourcebundleName - name of the resource bundlekey - to lookup the resourcesuffix - for the key to lookupdefaultValue - of the resourceClassCastException - if the resource found doesn't match Tpublic static String getCounterGroupName(String group, String defaultValue)
group - the group name to lookupdefaultValue - of the groupCopyright © 2022 Apache Software Foundation. All rights reserved.