public final class Messages
extends java.lang.Object
Modifier | Constructor and Description |
---|---|
private |
Messages() |
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.
|
private static java.lang.String |
join(java.lang.String interfaceName,
java.lang.String a,
java.lang.String b,
java.lang.String c,
java.lang.String d) |
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 useprivate static java.lang.String join(java.lang.String interfaceName, java.lang.String a, java.lang.String b, java.lang.String c, java.lang.String d)