Modifier and Type | Class and Description |
---|---|
static class |
MessageUtils.DuplicateConstantError
Thrown when two different constants have the same value.
|
Modifier and Type | Field and Description |
---|---|
static String[] |
DEFAULT_PREFIXES
Default prefixes for constants.
|
Constructor and Description |
---|
MessageUtils() |
Modifier and Type | Method and Description |
---|---|
static SparseArray<String> |
findMessageNames(Class[] classNames)
Finds the names of integer constants.
|
static SparseArray<String> |
findMessageNames(Class[] classes,
String[] prefixes)
Finds the names of integer constants.
|
public static final String[] DEFAULT_PREFIXES
public static SparseArray<String> findMessageNames(Class[] classes, String[] prefixes)
classes
, looking for
accessible static integer fields whose names begin with one of the specified .classes
- the classes to examine.SparseArray
mapping integer constants to their names.public static SparseArray<String> findMessageNames(Class[] classNames)
classes
, looking for
accessible static integer values whose names begin with DEFAULT_PREFIXES
.classNames
- the classes to examine.SparseArray
mapping integer constants to their names.