public final class Messages
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static <T> T |
getBundle(java.lang.Class<T> type)
Get a message bundle of the given type.
|
static <T> T |
getBundle(java.lang.Class<T> type,
java.util.Locale locale)
Get a message bundle of the given type.
|
public static <T> T getBundle(java.lang.Class<T> type)
getBundle
(type, Locale.getDefault())
.T
- the bundle typetype
- the bundle type classpublic static <T> T getBundle(java.lang.Class<T> type, java.util.Locale locale)
T
- the bundle typetype
- the bundle type classlocale
- the message locale to useCopyright © 2015 Red Hat, Inc.